Mercurial > gnulib
comparison 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 |
comparison
equal
deleted
inserted
replaced
14864:93b21a56e926 | 14865:a2e884bebbb5 |
---|---|
49 But avoid namespace pollution on glibc systems. */ | 49 But avoid namespace pollution on glibc systems. */ |
50 # ifndef __GLIBC__ | 50 # ifndef __GLIBC__ |
51 # include <sys/time.h> | 51 # include <sys/time.h> |
52 # endif | 52 # endif |
53 | 53 |
54 /* On Solaris 10, <sys/select.h> provides an FD_ZERO implementation | 54 /* On AIX 7 and Solaris 10, <sys/select.h> provides an FD_ZERO implementation |
55 that relies on memset(), but without including <string.h>. | 55 that relies on memset(), but without including <string.h>. |
56 But in any case avoid namespace pollution on glibc systems. */ | 56 But in any case avoid namespace pollution on glibc systems. */ |
57 # if (defined __OpenBSD__ || defined __sun || defined __osf__ || defined __BEOS__) \ | 57 # if (defined __OpenBSD__ || defined _AIX || defined __sun || defined __osf__ || defined __BEOS__) \ |
58 && ! defined __GLIBC__ | 58 && ! defined __GLIBC__ |
59 # include <string.h> | 59 # include <string.h> |
60 # endif | 60 # endif |
61 | 61 |
62 /* The include_next requires a split double-inclusion guard. */ | 62 /* The include_next requires a split double-inclusion guard. */ |