changeset 13783:47adc262f2b7

sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5. * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
author Bruno Haible <bruno@clisp.org>
date Fri, 08 Oct 2010 22:01:50 +0200
parents 3a4a1b81c846
children 69ee8a8d4ebd
files ChangeLog lib/sys_select.in.h
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/sys_select.in.h
+++ b/lib/sys_select.in.h
@@ -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