summaryrefslogtreecommitdiff
path: root/src/dd.c
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-04-26 09:09:43 +0200
committerJim Meyering <meyering@redhat.com>2011-04-26 09:27:44 +0200
commit740516cd1205b58ad07f2318335d8177586a4ca4 (patch)
tree6aff6b3e651803d0f7c5e04b453296fcc7ec8f4a /src/dd.c
parentd891fe81f7f774aa19857c888e5924aecf421ebe (diff)
downloadcoreutils-740516cd1205b58ad07f2318335d8177586a4ca4.tar.xz
dd: work around compilation failure on AIX 5.1 and 5.2
* src/dd.c (O_NOCACHE): Undefine. This symbol is defined via AIX's <fcntl.h>, yet used as an enum name in dd.c. Reported by Gary V. Vaughan in http://debbugs.gnu.org/8555 * NEWS (Portability): Mention this.
Diffstat (limited to 'src/dd.c')
-rw-r--r--src/dd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/dd.c b/src/dd.c
index cb626fc49..072410e1f 100644
--- a/src/dd.c
+++ b/src/dd.c
@@ -66,6 +66,10 @@
# define O_CIO 0
#endif
+/* On AIX 5.1 and AIX 5.2, O_NOCACHE is defined via <fcntl.h>
+ and would interfere with our use of that name, below. */
+#undef O_NOCACHE
+
#if ! HAVE_FDATASYNC
# define fdatasync(fd) (errno = ENOSYS, -1)
#endif