From: Jim Meyering Date: Thu, 8 Apr 2004 08:14:02 +0000 (+0000) Subject: (O_DIRECT, O_DSYNC, O_NDELAY, O_NOFOLLOW, O_RSYNC, O_SYNC): X-Git-Tag: COREUTILS-5_3_0~1856 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=273184066efb922a7d6a5541a57c378011b4d07d;p=platform%2Fupstream%2Fcoreutils.git (O_DIRECT, O_DSYNC, O_NDELAY, O_NOFOLLOW, O_RSYNC, O_SYNC): Define to 0 if not already defined. --- diff --git a/src/system.h b/src/system.h index f89c33d..b388c1d 100644 --- a/src/system.h +++ b/src/system.h @@ -197,6 +197,14 @@ initialize_exit_failure (int status) # define O_TEXT _O_TEXT #endif +#if !defined O_DIRECT +# define O_DIRECT 0 +#endif + +#if !defined O_DSYNC +# define O_DSYNC 0 +#endif + #if !defined O_NDELAY # define O_NDELAY 0 #endif @@ -209,6 +217,18 @@ initialize_exit_failure (int status) # define O_NOCTTY 0 #endif +#if !defined O_NOFOLLOW +# define O_NOFOLLOW 0 +#endif + +#if !defined O_RSYNC +# define O_RSYNC 0 +#endif + +#if !defined O_SYNC +# define O_SYNC 0 +#endif + #ifdef __BEOS__ /* BeOS 5 has O_BINARY and O_TEXT, but they have no effect. */ # undef O_BINARY