From: Bruno Haible Date: Fri, 17 Jun 2011 22:29:40 +0000 (+0200) Subject: pread, pwrite: Avoid cc warning on AIX. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6d3498bc359abfa38966b11184ea6831942efab;p=pspp 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 5d91bba9a5..e77dd85e34 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +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. diff --git a/lib/unistd.in.h b/lib/unistd.in.h index 98ab6e655b..1adbd1a6c1 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,