[PATCH] Add missing includes to timer_test.c and osmo-auc-gen.c

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/OpenBSC@lists.osmocom.org/.

Chí-Thanh Christopher Nguyễn chithanh at gentoo.org
Thu Aug 2 00:01:49 UTC 2012


This fixes the build with -Werror-implicit-function-declaration.
---
 tests/timer/timer_test.c |    1 +
 utils/osmo-auc-gen.c     |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tests/timer/timer_test.c b/tests/timer/timer_test.c
index 61079bd..ba3127d 100644
--- a/tests/timer/timer_test.c
+++ b/tests/timer/timer_test.c
@@ -26,6 +26,7 @@
 #include <stdlib.h>
 #include <signal.h>
 #include <getopt.h>
+#include <unistd.h>
  #include <osmocom/core/talloc.h>
 #include <osmocom/core/timer.h>
diff --git a/utils/osmo-auc-gen.c b/utils/osmo-auc-gen.c
index 266d0d6..1a78477 100644
--- a/utils/osmo-auc-gen.c
+++ b/utils/osmo-auc-gen.c
@@ -26,6 +26,7 @@
 #include <errno.h>
 #include <string.h>
 #include <getopt.h>
+#include <time.h>
  #include <osmocom/crypt/auth.h>
 #include <osmocom/core/utils.h>
-- 
1.7.8.6



More information about the OpenBSC mailing list