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 5d91bba9a560b07ffcd02bd9a79f55315ce003d0..e77dd85e3467a111d448a2d8346ec4b8625fed1b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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.
index 98ab6e655ba5fe107fe046bd946398a7a287da30..1adbd1a6c18ad65f11aa2b101a4239af6455c117 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,