comparison lib/sys_time.in.h @ 17454:a2d511609297

sys_time: port to OpenBSD * lib/sys_time.in.h: Simply delegate to the system's header in the BSDish cases as well. Problem reported by Mike Miller in <http://lists.gnu.org/archive/html/bug-gnulib/2013-08/msg00016.html>. * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type): Allow platforms like 64-bit OpenBSD where timeval's tv_sec is wider than time_t.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 10 Aug 2013 22:02:58 -0700
parents 5a51fb7777a9
children 344018b6e5d7
comparison
equal deleted inserted replaced
17453:290d581e2e24 17454:a2d511609297
22 #if __GNUC__ >= 3 22 #if __GNUC__ >= 3
23 @PRAGMA_SYSTEM_HEADER@ 23 @PRAGMA_SYSTEM_HEADER@
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>. 27 /* On Cygwin and on many BSDish systems, <sys/time.h> includes itself
28 recursively via <sys/select.h>.
28 Simply delegate to the system's header in this case; it is a no-op. 29 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 Without this extra ifdef, the C++ gettimeofday declaration below
30 would be a forward declaration in gnulib's nested <sys/time.h>. */ 31 would be a forward declaration in gnulib's nested <sys/time.h>. */
31 #ifdef _CYGWIN_SYS_TIME_H 32 #if defined _CYGWIN_SYS_TIME_H || defined _SYS_TIME_H || defined _SYS_TIME_H_
32 # @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@ 33 # @INCLUDE_NEXT@ @NEXT_SYS_TIME_H@
33 #else 34 #else
34 35
35 /* The include_next requires a split double-inclusion guard. */ 36 /* The include_next requires a split double-inclusion guard. */
36 #if @HAVE_SYS_TIME_H@ 37 #if @HAVE_SYS_TIME_H@