Mercurial > gnulib
diff lib/sys_select.in.h @ 14865:a2e884bebbb5
sys_select: Ensure memset is declared also on AIX 7.
* lib/sys_select.in.h: Include <string.h> also on AIX.
* doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
self-contained also on AIX 7.1.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Sun, 05 Jun 2011 14:20:16 +0200 |
parents | 5f709022a256 |
children | c7ae1577bd26 |
line wrap: on
line diff
--- a/lib/sys_select.in.h Sat Jun 04 19:56:58 2011 +0200 +++ b/lib/sys_select.in.h Sun Jun 05 14:20:16 2011 +0200 @@ -51,10 +51,10 @@ # include <sys/time.h> # endif -/* On Solaris 10, <sys/select.h> provides an FD_ZERO implementation +/* On AIX 7 and 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 __OpenBSD__ || defined __sun || defined __osf__ || defined __BEOS__) \ +# if (defined __OpenBSD__ || defined _AIX || defined __sun || defined __osf__ || defined __BEOS__) \ && ! defined __GLIBC__ # include <string.h> # endif