From: Bruno Haible Date: Fri, 31 Dec 2010 14:48:04 +0000 (+0100) Subject: sys_select: Avoid warning about missing memset declaration on HP-UX 11. X-Git-Tag: v0.1~3425 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=1f54a75aaa81e71d1113a846afcd7992f2e8bd4e;p=gnulib.git sys_select: Avoid warning about missing memset declaration on HP-UX 11. * lib/sys_select.in.h: On HP-UX, include also . --- diff --git a/ChangeLog b/ChangeLog index 14cd98e04..885aa84bd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2010-12-31 Bruno Haible + sys_select: Avoid warning about missing memset declaration on HP-UX 11. + * lib/sys_select.in.h: On HP-UX, include also . + +2010-12-31 Bruno Haible + waitpid: Fix link error in C++ mode. * lib/sys_wait.in.h: Remove extern "C" { ... } group. diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index 77472bf5f..3422c2383 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 +/* On HP-UX 11, provides an FD_ZERO implementation + that relies on memset(), but without including . */ +# if defined __hpux +# include +# endif /* On native Windows platforms: Get the 'fd_set' type. Also, gnulib's redefines select so as to hide the declaration from . */