From 6511cab26728453d1b5e572bbbc3775f70c10c0e Mon Sep 17 00:00:00 2001 From: Paul Jakma Date: Thu, 18 Jun 2009 17:38:01 +0100 Subject: [configure] Refine CLOCK_MONOTONIC test * configure.ac: Check for the actual CLOCK_MONOTONIC symbol, as clock_gettime need not imply that clock type is supported * lib/zebra.h: use the method given in autoconf docs for sys/time.h inclusion --- lib/zebra.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'lib/zebra.h') diff --git a/lib/zebra.h b/lib/zebra.h index 2716460f..2dc84514 100644 --- a/lib/zebra.h +++ b/lib/zebra.h @@ -55,7 +55,6 @@ typedef int socklen_t; #include #endif /* HAVE_SYS_SELECT_H */ #include -#include #include #include #ifdef HAVE_SYS_SYSCTL_H @@ -72,7 +71,16 @@ typedef int socklen_t; #include #endif /* HAVE_SYS_KSYM_H */ #include -#include +#ifdef TIME_WITH_SYS_TIME +# include +# include +#else +# ifdef HAVE_SYS_TIME_H +# include +# else +# include +# endif +#endif /* TIME_WITH_SYS_TIME */ #include #include #ifdef HAVE_RUSAGE -- cgit v1.2.1