From 740516cd1205b58ad07f2318335d8177586a4ca4 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 26 Apr 2011 09:09:43 +0200 Subject: [PATCH] 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 , yet used as an enum name in dd.c. Reported by Gary V. Vaughan in http://debbugs.gnu.org/8555 * NEWS (Portability): Mention this. --- NEWS | 4 ++++ src/dd.c | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/NEWS b/NEWS index 3307e71e9b..025b5642c0 100644 --- a/NEWS +++ b/NEWS @@ -20,6 +20,10 @@ GNU coreutils NEWS -*- outline -*- Sparse files are relatively unusual, and the copying code incurs the performance penalty of the now-mandatory sync only for them. +** Portability + + dd once again compiles on AIX 5.1 and 5.2 + * Noteworthy changes in release 8.11 (2011-04-13) [stable] diff --git a/src/dd.c b/src/dd.c index cb626fc498..072410e1fb 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 + and would interfere with our use of that name, below. */ +#undef O_NOCACHE + #if ! HAVE_FDATASYNC # define fdatasync(fd) (errno = ENOSYS, -1) #endif -- 2.47.2