From b6d3498bc359abfa38966b11184ea6831942efab Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 18 Jun 2011 00:29:40 +0200 Subject: [PATCH] pread, pwrite: Avoid cc warning on AIX. * lib/unistd.in.h (pread): Undefine before defining as a macro. (pwrite): Likewise. --- ChangeLog | 6 ++++++ lib/unistd.in.h | 2 ++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 5d91bba9a..e77dd85e3 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,11 @@ 2011-06-17 Bruno Haible + 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 + spawn-pipe tests: Fix link error. * tests/test-spawn-pipe-child.c: Undefine fprintf. Reported by Tom G. Christensen . diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 98ab6e655..1adbd1a6c 100644 --- a/lib/unistd.in.h +++ b/lib/unistd.in.h @@ -1062,6 +1062,7 @@ _GL_WARN_ON_USE (pipe2, "pipe2 is unportable - " specification . */ # 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 - " . */ # if @REPLACE_PWRITE@ # if !(defined __cplusplus && defined GNULIB_NAMESPACE) +# undef pwrite # define pwrite rpl_pwrite # endif _GL_FUNCDECL_RPL (pwrite, ssize_t, -- 2.11.0