Split the double-inclusion guard. Fixes a problem with #include_next.
[pspp] / lib / sys_time_.h
index 6fe31b5bf2e3d522faf8cedf6b2ff4c72572cb7f..253316f7bf5ba7d79099308de0602df260333892 100644 (file)
@@ -19,8 +19,8 @@
 /* Written by Paul Eggert.  */
 
 #ifndef _GL_SYS_TIME_H
-#define _GL_SYS_TIME_H
 
+/* The include_next requires a split double-inclusion guard.  */
 #if @HAVE_SYS_TIME_H@
 # if @HAVE_INCLUDE_NEXT@
 #  include_next <sys/time.h>
@@ -31,6 +31,9 @@
 # include <time.h>
 #endif
 
+#ifndef _GL_SYS_TIME_H
+#define _GL_SYS_TIME_H
+
 #if ! @HAVE_STRUCT_TIMEVAL@
 struct timeval
 {
@@ -46,3 +49,4 @@ int gettimeofday (struct timeval *restrict, void *restrict);
 #endif
 
 #endif /* _GL_SYS_TIME_H */
+#endif /* _GL_SYS_TIME_H */