changeset 15281:7be11eb972c2

pread, pwrite: Avoid cc warning on AIX. * lib/unistd.in.h (pread): Undefine before defining as a macro. (pwrite): Likewise.
author Bruno Haible <bruno@clisp.org>
date Sat, 18 Jun 2011 00:29:40 +0200
parents 3642fa396eeb
children 5b5b1669e3d4
files ChangeLog lib/unistd.in.h
diffstat 2 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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.
--- a/lib/unistd.in.h
+++ b/lib/unistd.in.h
@@ -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,