> 2010-10-06 Bruno Haible <br...@clisp.org> > > string, sys_select: Avoid #including large headers unless necessary. > * lib/string.in.h: Don't include <unistd.h> except on NetBSD. > * lib/sys_select.in.h: Don't include <string.h> except on Solaris, > OSF/1, BeOS, Haiku. > Reported by Jim Meyering.
Oops, this reintroduced the warning about memset() in test-select-fd.c on OpenBSD 4.5. This fixes it. 2010-10-08 Bruno Haible <br...@clisp.org> sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5. * lib/sys_select.in.h: Include <string.h> also on OpenBSD. --- lib/sys_select.in.h.orig Fri Oct 8 22:00:20 2010 +++ lib/sys_select.in.h Fri Oct 8 22:00:08 2010 @@ -52,7 +52,7 @@ /* On Solaris 10, <sys/select.h> provides an FD_ZERO implementation that relies on memset(), but without including <string.h>. But in any case avoid namespace pollution on glibc systems. */ -# if (defined __sun || defined __osf__ || defined __BEOS__) \ +# if (defined __OpenBSD__ || defined __sun || defined __osf__ || defined __BEOS__) \ && ! defined __GLIBC__ # include <string.h> # endif