diff options
| author | Bruno Haible <bruno@clisp.org> | 2010-12-31 15:48:04 +0100 |
|---|---|---|
| committer | Bruno Haible <bruno@clisp.org> | 2010-12-31 15:48:04 +0100 |
| commit | 1f54a75aaa81e71d1113a846afcd7992f2e8bd4e (patch) | |
| tree | f203672813da30176705693520bfcceadc845846 /lib/sys_select.in.h | |
| parent | 9c01ebed5022fc49f67b29e334fdb6e3c7f49fc2 (diff) | |
| download | gnulib-1f54a75aaa81e71d1113a846afcd7992f2e8bd4e.tar.gz | |
sys_select: Avoid warning about missing memset declaration on HP-UX 11.
* lib/sys_select.in.h: On HP-UX, include also <string.h>.
Diffstat (limited to 'lib/sys_select.in.h')
| -rw-r--r-- | lib/sys_select.in.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index 77472bf5fd..3422c23832 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -72,6 +72,11 @@ /* Get the 'struct timeval' and 'fd_set' types and the FD_* macros on most platforms. */ # include <sys/time.h> +/* On HP-UX 11, <sys/time.h> provides an FD_ZERO implementation + that relies on memset(), but without including <string.h>. */ +# if defined __hpux +# include <string.h> +# endif /* On native Windows platforms: Get the 'fd_set' type. Also, gnulib's <sys/socket.h> redefines select so as to hide the declaration from <winsock2.h>. */ |
