summaryrefslogtreecommitdiff
path: root/lib/gc-gnulib.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-05-22 00:05:01 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-05-22 00:06:33 -0700
commitf345edc03da1a81f313dd70305764025bffeb1fa (patch)
treead8062dd69d2af5bfc83afaf2555c41a951ff150 /lib/gc-gnulib.c
parent75fa857e81bc31789615d60512f4d7fdcef2a0ce (diff)
downloadgnulib-f345edc03da1a81f313dd70305764025bffeb1fa.tar.gz
fchdir: port 'open' and 'close' redefinitions to AIX 7.1
* lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c: * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c: * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c: * lib/spawn-pipe.c: Do not #undef 'open' and 'close'. AIX 7 does '#define open open64' and then 'int open64(const char *, int, ...);', which means the declaration for 'open' gets lost if we later '#undef open'. Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1, where the compilation reported the non-fatal error "In function 'openat_proc_name' ... warning: implicit declaration of function 'open'". In this case the error is relatively harmless, but in other cases it might not be so minor.
Diffstat (limited to 'lib/gc-gnulib.c')
-rw-r--r--lib/gc-gnulib.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/gc-gnulib.c b/lib/gc-gnulib.c
index 573cc9815a..dcd368b211 100644
--- a/lib/gc-gnulib.c
+++ b/lib/gc-gnulib.c
@@ -66,11 +66,6 @@
# include "rijndael-api-fst.h"
#endif
-/* The results of open() in this file are not used with fchdir,
- therefore save some unnecessary work in fchdir.c. */
-#undef open
-#undef close
-
#ifdef GNULIB_GC_RANDOM
# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
# include <windows.h>