[PATCH] libosmocore[master]: timer_gettimeofday.c: Fix implicit use of timeradd

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

Pau Espin Pedrol gerrit-no-reply at lists.osmocom.org
Sun Jun 18 09:44:41 UTC 2017


Review at  https://gerrit.osmocom.org/2959

timer_gettimeofday.c: Fix implicit use of timeradd

timer_gettimeofday.c: In function 'osmo_gettimeofday_override_add':
timer_gettimeofday.c:54:2: error: implicit declaration of function 'timeradd' [-Werror=implicit-function-declaration]
  timeradd(&osmo_gettimeofday_override_time, &val,
  ^

Change-Id: Iced451be255cfde8a6cf38380bef71ef29673994
---
M src/timer_gettimeofday.c
1 file changed, 1 insertion(+), 0 deletions(-)


  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/59/2959/1

diff --git a/src/timer_gettimeofday.c b/src/timer_gettimeofday.c
index 81a1598..3573051 100644
--- a/src/timer_gettimeofday.c
+++ b/src/timer_gettimeofday.c
@@ -29,6 +29,7 @@
 
 #include <stdbool.h>
 #include <sys/time.h>
+#include <osmocom/core/timer_compat.h>
 
 bool osmo_gettimeofday_override = false;
 struct timeval osmo_gettimeofday_override_time = { 23, 424242 };

-- 
To view, visit https://gerrit.osmocom.org/2959
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Iced451be255cfde8a6cf38380bef71ef29673994
Gerrit-PatchSet: 1
Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Owner: Pau Espin Pedrol <pespin at sysmocom.de>



More information about the gerrit-log mailing list