diff options
Diffstat (limited to 'lib/sys_time.in.h')
| -rw-r--r-- | lib/sys_time.in.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/sys_time.in.h b/lib/sys_time.in.h index 656c3f13ad2..3dbf6320667 100644 --- a/lib/sys_time.in.h +++ b/lib/sys_time.in.h | |||
| @@ -24,6 +24,14 @@ | |||
| 24 | #endif | 24 | #endif |
| 25 | @PRAGMA_COLUMNS@ | 25 | @PRAGMA_COLUMNS@ |
| 26 | 26 | ||
| 27 | /* On Cygwin, <sys/time.h> includes itself recursively via <sys/select.h>. | ||
| 28 | Simply delegate to the system's header in this case; it is a no-op. | ||
| 29 | Without this extra ifdef, the C++ gettimeofday declaration below | ||
| 30 | would be a forward declaration in gnulib's nested <sys/time.h>. */ | ||
| 31 | #ifdef _CYGWIN_SYS_TIME_H | ||
| 32 | # @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@ | ||
| 33 | #else | ||
| 34 | |||
| 27 | /* The include_next requires a split double-inclusion guard. */ | 35 | /* The include_next requires a split double-inclusion guard. */ |
| 28 | #if @HAVE_SYS_TIME_H@ | 36 | #if @HAVE_SYS_TIME_H@ |
| 29 | # @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@ | 37 | # @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@ |
| @@ -200,4 +208,5 @@ _GL_WARN_ON_USE (gettimeofday, "gettimeofday is unportable - " | |||
| 200 | #endif | 208 | #endif |
| 201 | 209 | ||
| 202 | #endif /* _@GUARD_PREFIX@_SYS_TIME_H */ | 210 | #endif /* _@GUARD_PREFIX@_SYS_TIME_H */ |
| 211 | #endif /* _CYGWIN_SYS_TIME_H */ | ||
| 203 | #endif /* _@GUARD_PREFIX@_SYS_TIME_H */ | 212 | #endif /* _@GUARD_PREFIX@_SYS_TIME_H */ |