diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-07-29 22:09:25 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-07-29 22:09:25 +0200 |
commit | d294543ea086a8075363274a6e73780f28474a0c (patch) | |
tree | f0e8cff885cf2054cdd18e3cd1620591d311efea /gl/tests | |
parent | 2458eaf14065b0ed5e74a2d5e802b3e3950034b2 (diff) | |
download | gnutls-d294543ea086a8075363274a6e73780f28474a0c.tar.gz |
updated gnulib
Diffstat (limited to 'gl/tests')
-rw-r--r-- | gl/tests/fcntl.in.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/gl/tests/fcntl.in.h b/gl/tests/fcntl.in.h index 99f75e60fd..e23b4b2bcd 100644 --- a/gl/tests/fcntl.in.h +++ b/gl/tests/fcntl.in.h @@ -186,6 +186,22 @@ _GL_WARN_ON_USE (openat, "openat is not portable - " /* Fix up the O_* macros. */ +/* AIX 7.1 with XL C 12.1 defines O_CLOEXEC, O_NOFOLLOW, and O_TTY_INIT + to values outside 'int' range, so omit these misdefinitions. + But avoid namespace pollution on non-AIX systems. */ +#ifdef _AIX +# include <limits.h> +# if defined O_CLOEXEC && ! (INT_MIN <= O_CLOEXEC && O_CLOEXEC <= INT_MAX) +# undef O_CLOEXEC +# endif +# if defined O_NOFOLLOW && ! (INT_MIN <= O_NOFOLLOW && O_NOFOLLOW <= INT_MAX) +# undef O_NOFOLLOW +# endif +# if defined O_TTY_INIT && ! (INT_MIN <= O_TTY_INIT && O_TTY_INIT <= INT_MAX) +# undef O_TTY_INIT +# endif +#endif + #if !defined O_DIRECT && defined O_DIRECTIO /* Tru64 spells it 'O_DIRECTIO'. */ # define O_DIRECT O_DIRECTIO |