summaryrefslogtreecommitdiff
path: root/lib/sys_select.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2011-06-05 14:20:16 +0200
committerBruno Haible <bruno@clisp.org>2011-06-05 14:20:16 +0200
commitd3e6271320ff89f1fae7885f50a5d2508f8d9e88 (patch)
tree58f617598da8e490bc178c8cfef371da98775e60 /lib/sys_select.in.h
parent33b95ee0afed91f941fccd71252c8b2e72ae4544 (diff)
downloadgnulib-d3e6271320ff89f1fae7885f50a5d2508f8d9e88.tar.gz
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.
Diffstat (limited to 'lib/sys_select.in.h')
-rw-r--r--lib/sys_select.in.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/sys_select.in.h b/lib/sys_select.in.h
index 1255a19ff0..d6d8c7be46 100644
--- a/lib/sys_select.in.h
+++ b/lib/sys_select.in.h
@@ -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