Mercurial > gnulib
comparison lib/sys_select.in.h @ 30232:93e5702f1344
strengthen self-containedness check for sys/select.h
2008-09-29 Paolo Bonzini <bonzini@gnu.org>
Bruno Haible <bruno@clisp.org>
* lib/sys_select.in.h: Include sys/time.h.
* m4/sys_select.h.m4: Test that struct timeval is fully defined.
* modules/sys_select: Depend on sys_time.
* tests/test-sys_select.c: Test that sys/select.h defines struct
timeval fully.
author | Paolo Bonzini <bonzini@gnu.org> |
---|---|
date | Mon, 29 Sep 2008 12:02:35 +0200 |
parents | d0e994df59ca |
children | ca7f9b88efc1 |
comparison
equal
deleted
inserted
replaced
30231:d75f2a61b4f9 | 30232:93e5702f1344 |
---|---|
22 @PRAGMA_SYSTEM_HEADER@ | 22 @PRAGMA_SYSTEM_HEADER@ |
23 | 23 |
24 /* On many platforms, <sys/select.h> assumes prior inclusion of | 24 /* On many platforms, <sys/select.h> assumes prior inclusion of |
25 <sys/types.h>. */ | 25 <sys/types.h>. */ |
26 # include <sys/types.h> | 26 # include <sys/types.h> |
27 | |
28 /* On OSF/1 4.0, <sys/select.h> provides only a forward declaration | |
29 of 'struct timeval', and no definition of this type.. */ | |
30 # include <sys/time.h> | |
27 | 31 |
28 /* The include_next requires a split double-inclusion guard. */ | 32 /* The include_next requires a split double-inclusion guard. */ |
29 # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ | 33 # @INCLUDE_NEXT@ @NEXT_SYS_SELECT_H@ |
30 | 34 |
31 #endif | 35 #endif |