From 273184066efb922a7d6a5541a57c378011b4d07d Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 8 Apr 2004 08:14:02 +0000 Subject: (O_DIRECT, O_DSYNC, O_NDELAY, O_NOFOLLOW, O_RSYNC, O_SYNC): Define to 0 if not already defined. --- src/system.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src') diff --git a/src/system.h b/src/system.h index f89c33d46..b388c1d4b 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 -- cgit v1.2.3-54-g00ecf