From fe621e2e212dbedcbc80f5b7991717b18d5d8443 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 8 Oct 2010 22:01:50 +0200 Subject: [PATCH] sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5. * lib/sys_select.in.h: Include also on OpenBSD. --- ChangeLog | 5 +++++ lib/sys_select.in.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b7402cf36b..adbcd1bf72 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-10-08 Bruno Haible + + sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5. + * lib/sys_select.in.h: Include also on OpenBSD. + 2010-10-08 Bruno Haible nanosleep: Make replacement POSIX compliant. diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h index f9b850cebf..4414dfeba9 100644 --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -52,7 +52,7 @@ /* On Solaris 10, provides an FD_ZERO implementation that relies on memset(), but without including . 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 # endif -- 2.30.2