diff options
author | Bruno Haible <bruno@clisp.org> | 2011-06-18 00:29:40 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2011-06-18 00:29:40 +0200 |
commit | b6d3498bc359abfa38966b11184ea6831942efab (patch) | |
tree | a89e3a8cfe242c386c6933f98770df2c21fc68fb /lib/unistd.in.h | |
parent | d5b824ef9f8ed062afd0281722d4608f02b2437a (diff) | |
download | gnulib-b6d3498bc359abfa38966b11184ea6831942efab.tar.gz |
pread, pwrite: Avoid cc warning on AIX.
* lib/unistd.in.h (pread): Undefine before defining as a macro.
(pwrite): Likewise.
Diffstat (limited to 'lib/unistd.in.h')
-rw-r--r-- | lib/unistd.in.h | 2 |
1 files changed, 2 insertions, 0 deletions
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 <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, |