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 b7402cf..adbcd1b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
 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.
        * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
        is out of range.
index f9b850c..4414dfe 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