summaryrefslogtreecommitdiff
path: root/lib/fsusage.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/fsusage.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/fsusage.c')
-rw-r--r--lib/fsusage.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/fsusage.c b/lib/fsusage.c
index 6b8f7424d9..5bfc9cd092 100644
--- a/lib/fsusage.c
+++ b/lib/fsusage.c
@@ -55,11 +55,6 @@
# include "full-read.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
-
/* Many space usage primitives use all 1 bits to denote a value that is
not applicable or unknown. Propagate this information by returning
a uintmax_t value that is all 1 bits if X is all 1 bits, even if X