Wed May 1 09:10:04 1996 Roland McGrath <roland@delasyd.gnu.ai.mit.edu>
authorroland <roland>
Wed, 1 May 1996 13:48:44 +0000 (13:48 +0000)
committerroland <roland>
Wed, 1 May 1996 13:48:44 +0000 (13:48 +0000)
* time/strftime.c: Use canonical autoconf nugget for time.h+sys/time.h
include.

time/strftime.c

index 02f72b3..8c5e0cb 100644 (file)
@@ -31,7 +31,17 @@ Cambridge, MA 02139, USA.  */
 
 #include <stdio.h>
 #include <sys/types.h>         /* Some systems define `time_t' here.  */
-#include <time.h>
+
+#ifdef TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# ifdef HAVE_SYS_TIME_H
+#  include <sys/time.h>
+# else
+#  include <time.h>
+# endif
+#endif
 
 #if HAVE_MBLEN
 # include <ctype.h>