# HG changeset patch # User Bruno Haible # Date 1307276416 -7200 # Node ID a2e884bebbb53f83fbd682361d8d214c60071ebd # Parent 93b21a56e926a80300f4d09e616d79719c6e16f8 sys_select: Ensure memset is declared also on AIX 7. * lib/sys_select.in.h: Include also on AIX. * doc/posix-headers/sys_select.texi: Mention that is not self-contained also on AIX 7.1. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-06-05 Bruno Haible + + sys_select: Ensure memset is declared also on AIX 7. + * lib/sys_select.in.h: Include also on AIX. + * doc/posix-headers/sys_select.texi: Mention that is not + self-contained also on AIX 7.1. + 2011-06-04 Jim Meyering maint.mk: sc_unmarked_diagnostics: don't hard-code "error" diff --git a/doc/posix-headers/sys_select.texi b/doc/posix-headers/sys_select.texi --- a/doc/posix-headers/sys_select.texi +++ b/doc/posix-headers/sys_select.texi @@ -19,7 +19,7 @@ @item This header file is not self-contained --- it requires @code{} before @code{FD_ZERO} can be used --- on some platforms: -Solaris 11 2010-11. +AIX 7.1, Solaris 11 2010-11. @end itemize Portability problems not fixed by Gnulib: diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h --- a/lib/sys_select.in.h +++ b/lib/sys_select.in.h @@ -51,10 +51,10 @@ # include # endif -/* On Solaris 10, provides an FD_ZERO implementation +/* On AIX 7 and 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 __OpenBSD__ || defined __sun || defined __osf__ || defined __BEOS__) \ +# if (defined __OpenBSD__ || defined _AIX || defined __sun || defined __osf__ || defined __BEOS__) \ && ! defined __GLIBC__ # include # endif