]> Dogcows Code - chaz/tar/commitdiff
Protect inclusion of <sys/time.h>
authorSergey Poznyakoff <gray@gnu.org.ua>
Sun, 4 Apr 2004 13:31:26 +0000 (13:31 +0000)
committerSergey Poznyakoff <gray@gnu.org.ua>
Sun, 4 Apr 2004 13:31:26 +0000 (13:31 +0000)
by ifdef.
Declare time() if HAVE_DECL_TIME is 0

src/system.h

index eaf88138432f2410fc632d45e16af695ce01e999..d82e8cd38e7dad94420110dc200823dd44caaa18 100644 (file)
@@ -476,8 +476,10 @@ char *getenv ();
 #endif
 
 #include <time.h>
-#include <sys/time.h>
-#ifndef time
+#if defined(HAVE_SYS_TIME_H) && defined(TIME_WITH_SYS_TIME)
+# include <sys/time.h>
+#endif
+#if ! HAVE_DECL_TIME
 time_t time ();
 #endif
 
This page took 0.027124 seconds and 4 git commands to generate.