]> granicus.if.org Git - sudo/commitdiff
Only include time.h on systems that lack struct timespec which
authorTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 6 Feb 2005 04:01:33 +0000 (04:01 +0000)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Sun, 6 Feb 2005 04:01:33 +0000 (04:01 +0000)
gets defind in compat.h (using time_t).

sudo_noexec.c

index 4d676e2cce8d11e4b8c782ccc5a4525782f82186..4e57ce614eeafb3b2fb4edbce29aa2f4aa7d50c2 100644 (file)
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  */
 
+#include <config.h>
+
 #include <errno.h>
-#include <time.h>
+#ifndef HAVE_TIMESPEC
+# include <time.h>
+#endif
 
-#include <config.h>
 #include <compat.h>
 
 #ifndef lint