/* 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>
# include <time.h>
#endif
+#ifndef _GL_SYS_TIME_H
+#define _GL_SYS_TIME_H
+
#if ! @HAVE_STRUCT_TIMEVAL@
struct timeval
{
#endif
#endif /* _GL_SYS_TIME_H */
+#endif /* _GL_SYS_TIME_H */