b2006-10-21 Paul Eggert <eggert@cs.ucla.edu>
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 21 Oct 2006 22:10:06 +0000 (22:10 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 21 Oct 2006 22:10:06 +0000 (22:10 +0000)
* lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
Problem reported by Perry Smith and Ville Laurikari.

ChangeLog
lib/stdint_.h

index 11c0564..8634882 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
-2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
+b2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
+       Problem reported by Perry Smith and Ville Laurikari.
 
        * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
        uses.
index b0af522..c29108f 100644 (file)
 
 /* <sys/types.h> defines some of the stdint.h types as well, on glibc,
    IRIX 6.5, and OpenBSD 3.8 (via <machine/types.h>).
+   AIX 5.2 <sys/types.h> isn't needed and causes troubles.
    MacOS X 10.4.6 <sys/types.h> includes <stdint.h> (which is us), but
    relies on the system <stdint.h> definitions, so include
    <sys/types.h> after @ABSOLUTE_STDINT_H@.  */
-#if @HAVE_SYS_TYPES_H@
+#if @HAVE_SYS_TYPES_H@ && ! defined _AIX
 # include <sys/types.h>
 #endif