From: Bruno Haible Date: Fri, 17 Jun 2011 22:29:40 +0000 (+0200) Subject: pread, pwrite: Avoid cc warning on AIX. X-Git-Tag: v0.1~2245 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=b6d3498bc359abfa38966b11184ea6831942efab;p=gnulib.git pread, pwrite: Avoid cc warning on AIX. * lib/unistd.in.h (pread): Undefine before defining as a macro. (pwrite): Likewise. --- 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,