bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compilation failure on freebsd8.0-p3 (acl-related?)


From: Bruno Haible
Subject: Re: compilation failure on freebsd8.0-p3 (acl-related?)
Date: Fri, 8 Oct 2010 22:03:16 +0200
User-agent: KMail/1.9.9

> 2010-10-06  Bruno Haible  <address@hidden>
> 
>       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  <address@hidden>

        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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]