]> granicus.if.org Git - sudo/commitdiff
POSIX states that struct timespec be declared in time.h so check
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 20 Oct 2007 02:28:40 +0000 (02:28 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sat, 20 Oct 2007 02:28:40 +0000 (02:28 +0000)
there regardless of the value of TIME_WITH_SYS_TIME.

configure
configure.in

index e692659414bdb883cc47f075465f3a871c385d52..527f20585f2e515e27b9b6ae1c2b94e7adcf00d6 100755 (executable)
--- a/configure
+++ b/configure
@@ -13928,10 +13928,8 @@ cat >>conftest.$ac_ext <<_ACEOF
 #include <sys/types.h>
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
-# include <time.h>
-#else
-# include <sys/time.h>
 #endif
+#include <time.h>
 
 typedef struct timespec ac__type_new_;
 int
index f4fb629e798eeca593aab4534187c798844719de..789ed5976adab1a981a01effb2949e18c276ec07 100644 (file)
@@ -1654,10 +1654,8 @@ AC_CHECK_TYPES([sigaction_t], [AC_DEFINE(HAVE_SIGACTION_T)], [], [#include <sys/
 AC_CHECK_TYPE([struct timespec], [AC_DEFINE(HAVE_TIMESPEC)], [], [#include <sys/types.h>
 #if TIME_WITH_SYS_TIME
 # include <sys/time.h>
-# include <time.h>
-#else
-# include <sys/time.h>
-#endif])
+#endif
+#include <time.h>])
 SUDO_TYPE_SIZE_T
 SUDO_TYPE_SSIZE_T
 SUDO_TYPE_DEV_T