(O_DIRECT, O_DSYNC, O_NDELAY, O_NOFOLLOW, O_RSYNC, O_SYNC):
authorJim Meyering <jim@meyering.net>
Thu, 8 Apr 2004 08:14:02 +0000 (08:14 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 8 Apr 2004 08:14:02 +0000 (08:14 +0000)
Define to 0 if not already defined.

src/system.h

index f89c33d..b388c1d 100644 (file)
@@ -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