sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
authorBruno Haible <bruno@clisp.org>
Fri, 8 Oct 2010 20:01:50 +0000 (22:01 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 8 Oct 2010 20:01:50 +0000 (22:01 +0200)
* lib/sys_select.in.h: Include <string.h> also on OpenBSD.

ChangeLog
lib/sys_select.in.h

index b7402cf36beff9b46de2101b7bfb0825dd2f8ad8..adbcd1bf72761de73858ffa43549d1de647b2c48 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-10-08  Bruno Haible  <bruno@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.
+
 2010-10-08  Bruno Haible  <bruno@clisp.org>
 
        nanosleep: Make replacement POSIX compliant.
index f9b850cebff77a1699dc4d3f8b7feabf087e442c..4414dfeba95cdeb6a2d0144de8e35927a8a7aa86 100644 (file)
@@ -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