[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
sys_select: tweak for AIX
From: |
Bruno Haible |
Subject: |
sys_select: tweak for AIX |
Date: |
Sun, 5 Jun 2011 14:20:05 +0200 |
User-agent: |
KMail/1.9.9 |
On AIX 7.1 with gcc, I'm seeing this warning:
test-sys_select.c:32: warning: implicit declaration of function 'memset'
test-sys_select.c:32: warning: incompatible implicit declaration of built-in
function 'memset'
This should fix it.
2011-06-05 Bruno Haible <address@hidden>
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.
--- doc/posix-headers/sys_select.texi.orig Sun Jun 5 14:17:27 2011
+++ doc/posix-headers/sys_select.texi Sun Jun 5 14:15:26 2011
@@ -19,7 +19,7 @@
@item
This header file is not self-contained --- it requires @code{<string.h>}
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:
--- lib/sys_select.in.h.orig Sun Jun 5 14:17:27 2011
+++ lib/sys_select.in.h Sun Jun 5 14:16:06 2011
@@ -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
--
In memoriam Eduard Lederer <http://de.wikipedia.org/wiki/Eduard_Lederer>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- sys_select: tweak for AIX,
Bruno Haible <=