pread, pwrite: Avoid cc warning on AIX.
authorBruno Haible <bruno@clisp.org>
Fri, 17 Jun 2011 22:29:40 +0000 (00:29 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 17 Jun 2011 22:29:40 +0000 (00:29 +0200)
* lib/unistd.in.h (pread): Undefine before defining as a macro.
(pwrite): Likewise.

ChangeLog
lib/unistd.in.h

index 5d91bba..e77dd85 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2011-06-17  Bruno Haible  <bruno@clisp.org>
 
+       pread, pwrite: Avoid cc warning on AIX.
+       * lib/unistd.in.h (pread): Undefine before defining as a macro.
+       (pwrite): Likewise.
+
+2011-06-17  Bruno Haible  <bruno@clisp.org>
+
        spawn-pipe tests: Fix link error.
        * tests/test-spawn-pipe-child.c: Undefine fprintf.
        Reported by Tom G. Christensen <tgc@jupiterrise.com>.
index 98ab6e6..1adbd1a 100644 (file)
@@ -1062,6 +1062,7 @@ _GL_WARN_ON_USE (pipe2, "pipe2 is unportable - "
    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 @@ _GL_WARN_ON_USE (pread, "pread is unportable - "
    <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,