From: Todd C. Miller Date: Sat, 20 Oct 2007 02:28:40 +0000 (+0000) Subject: POSIX states that struct timespec be declared in time.h so check X-Git-Tag: SUDO_1_7_0~343 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8ef458b5946ad2d69fa4f06607c8d5bfa070a79d;p=sudo POSIX states that struct timespec be declared in time.h so check there regardless of the value of TIME_WITH_SYS_TIME. --- diff --git a/configure b/configure index e69265941..527f20585 100755 --- a/configure +++ b/configure @@ -13928,10 +13928,8 @@ cat >>conftest.$ac_ext <<_ACEOF #include #if TIME_WITH_SYS_TIME # include -# include -#else -# include #endif +#include typedef struct timespec ac__type_new_; int diff --git a/configure.in b/configure.in index f4fb629e7..789ed5976 100644 --- a/configure.in +++ b/configure.in @@ -1654,10 +1654,8 @@ AC_CHECK_TYPES([sigaction_t], [AC_DEFINE(HAVE_SIGACTION_T)], [], [#include #if TIME_WITH_SYS_TIME # include -# include -#else -# include -#endif]) +#endif +#include ]) SUDO_TYPE_SIZE_T SUDO_TYPE_SSIZE_T SUDO_TYPE_DEV_T