summaryrefslogtreecommitdiff
path: root/ninfod
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2012-12-07 01:29:55 +0900
committerYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2012-12-07 01:37:16 +0900
commita12f8d430e77ac8279d0f55bc81dc9cc2da2c70b (patch)
treec8f6991e561ec838d385097c4d0a10108081e8a3 /ninfod
parent2d14cdf412c753b9cf778f1c80bf116651e15816 (diff)
downloadiputils-a12f8d430e77ac8279d0f55bc81dc9cc2da2c70b.tar.gz
ninfod: nanosleep(3) needs <time.h>.
| ninfod.c: In function 'ni_send': | ninfod.c:363:4: warning: implicit declaration of function 'nanosleep' [-Wimplicit-function-declaration] Patch based on iputils-20121125-ninfod-minor.patch from Fedora. Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Diffstat (limited to 'ninfod')
-rw-r--r--ninfod/ninfod.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/ninfod/ninfod.c b/ninfod/ninfod.c
index 51f6e2a..23d88d9 100644
--- a/ninfod/ninfod.c
+++ b/ninfod/ninfod.c
@@ -73,6 +73,17 @@
# include <unistd.h>
#endif
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+
#if HAVE_SYS_UIO_H
#include <sys/uio.h>
#endif