changeset 7540:62249b8c227f

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.
author Paul Eggert <eggert@cs.ucla.edu>
date Sat, 21 Oct 2006 22:10:06 +0000
parents 84cd79e074c1
children 22a37df64e25
files ChangeLog lib/stdint_.h
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/stdint_.h
+++ b/lib/stdint_.h
@@ -48,10 +48,11 @@
 
 /* <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