On AIX 6.1 and 7.1, with cc, I'm seeing warnings like this: "./../gllib/unistd.h", line 1411.12: 1506-236 (W) Macro name pwrite has been redefined. "./../gllib/unistd.h", line 1411.12: 1506-358 (I) "pwrite" is defined on line 965 of /usr/include/unistd.h.
The reason is that pwrite is #defined to pwrite64. This should fix the warnings. Note that our pwrite already supports large files if LFS is enabled. 2011-06-17 Bruno Haible <br...@clisp.org> pread, pwrite: Avoid cc warning on AIX. * lib/unistd.in.h (pread): Undefine before defining as a macro. (pwrite): Likewise. --- lib/unistd.in.h.orig Sat Jun 18 00:28:42 2011 +++ lib/unistd.in.h Sat Jun 18 00:26:54 2011 @@ -1062,6 +1062,7 @@ specification <http://www.opengroup.org/susv3xsh/pread.html>. */ # if @REPLACE_PREAD@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef pread # define pread rpl_pread # endif _GL_FUNCDECL_RPL (pread, ssize_t, @@ -1096,6 +1097,7 @@ <http://www.opengroup.org/susv3xsh/pwrite.html>. */ # if @REPLACE_PWRITE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef pwrite # define pwrite rpl_pwrite # endif _GL_FUNCDECL_RPL (pwrite, ssize_t, -- In memoriam The victims of the East German uprising <http://en.wikipedia.org/wiki/Uprising_of_1953_in_East_Germany>