sys_select: Avoid warning about missing memset declaration on HP-UX 11.
authorBruno Haible <bruno@clisp.org>
Fri, 31 Dec 2010 14:48:04 +0000 (15:48 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 31 Dec 2010 14:48:04 +0000 (15:48 +0100)
* lib/sys_select.in.h: On HP-UX, include also <string.h>.

ChangeLog
lib/sys_select.in.h

index 14cd98e..885aa84 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 2010-12-31  Bruno Haible  <bruno@clisp.org>
 
+       sys_select: Avoid warning about missing memset declaration on HP-UX 11.
+       * lib/sys_select.in.h: On HP-UX, include also <string.h>.
+
+2010-12-31  Bruno Haible  <bruno@clisp.org>
+
        waitpid: Fix link error in C++ mode.
        * lib/sys_wait.in.h: Remove extern "C" { ... } group.
 
index 77472bf..3422c23 100644 (file)
 /* 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>.  */