[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
pwrite warnings
From: |
Bruno Haible |
Subject: |
pwrite warnings |
Date: |
Sat, 18 Jun 2011 00:33:30 +0200 |
User-agent: |
KMail/1.9.9 |
On AIX 6.1 and 7.1, with cc, I'm seeing warnings like this:
"./../gllib/unistd.h", line 1411.12: 1506-236 (W) Macro name pwrite has been
redefined.
"./../gllib/unistd.h", line 1411.12: 1506-358 (I) "pwrite" is defined on line
965 of /usr/include/unistd.h.
The reason is that pwrite is #defined to pwrite64.
This should fix the warnings. Note that our pwrite already supports large files
if LFS is enabled.
2011-06-17 Bruno Haible <address@hidden>
pread, pwrite: Avoid cc warning on AIX.
* lib/unistd.in.h (pread): Undefine before defining as a macro.
(pwrite): Likewise.
--- lib/unistd.in.h.orig Sat Jun 18 00:28:42 2011
+++ lib/unistd.in.h Sat Jun 18 00:26:54 2011
@@ -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,
--
In memoriam The victims of the East German uprising
<http://en.wikipedia.org/wiki/Uprising_of_1953_in_East_Germany>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- pwrite warnings,
Bruno Haible <=