From: Jim Meyering Date: Tue, 26 Apr 2011 07:09:43 +0000 (+0200) Subject: dd: work around compilation failure on AIX 5.1 and 5.2 X-Git-Tag: v8.12~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=740516cd1205b58ad07f2318335d8177586a4ca4;p=platform%2Fupstream%2Fcoreutils.git 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. --- diff --git a/NEWS b/NEWS index 3307e71..025b564 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 cb626fc..072410e 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