diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2014-05-22 00:05:01 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2014-05-22 00:06:33 -0700 |
commit | f345edc03da1a81f313dd70305764025bffeb1fa (patch) | |
tree | ad8062dd69d2af5bfc83afaf2555c41a951ff150 /lib/copy-file.c | |
parent | 75fa857e81bc31789615d60512f4d7fdcef2a0ce (diff) | |
download | gnulib-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/copy-file.c')
-rw-r--r-- | lib/copy-file.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/copy-file.c b/lib/copy-file.c index 04d518df5a..488cc94c1c 100644 --- a/lib/copy-file.c +++ b/lib/copy-file.c @@ -48,11 +48,6 @@ #define _(str) gettext (str) -/* The results of open() in this file are not used with fchdir, - therefore save some unnecessary work in fchdir.c. */ -#undef open -#undef close - enum { IO_SIZE = 32 * 1024 }; int |