diff options
author | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2012-12-07 01:29:55 +0900 |
---|---|---|
committer | YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org> | 2012-12-07 01:37:16 +0900 |
commit | a12f8d430e77ac8279d0f55bc81dc9cc2da2c70b (patch) | |
tree | c8f6991e561ec838d385097c4d0a10108081e8a3 /ninfod | |
parent | 2d14cdf412c753b9cf778f1c80bf116651e15816 (diff) | |
download | iputils-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.c | 11 |
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 |