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 14cd98e046855f6272169bb649973407ee3f1f7f..885aa84bd619639359333ce5f29100aede22e7c5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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.
index 77472bf5fd58850b9cb68476989c929bacf79c3f..3422c23832cfdac764ef259e86cc3924760d146a 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>.  */