summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-08-08 03:04:00 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-08-08 03:04:00 +0000
commita5b9e9d4406846c279ef154585121d7d318cb9b3 (patch)
treeb1e1a441224d81b04c3e355995caee0ac3fd9742 /src
parenta86c457f64bde96a95ac0a376f4e24546ac62926 (diff)
downloadcoreutils-a5b9e9d4406846c279ef154585121d7d318cb9b3.tar.xz
(O_BINARY) [!O_BINARY && defined O_BINARY]:
Do not define, to avoid annoying compiler messages on QNX 6.3.
Diffstat (limited to 'src')
-rw-r--r--src/system.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/system.h b/src/system.h
index f70616be9..3497969a4 100644
--- a/src/system.h
+++ b/src/system.h
@@ -249,7 +249,9 @@ initialize_exit_failure (int status)
# define SET_MODE(_f, _m) (void)0
# define SET_BINARY(f) (void)0
# define SET_BINARY2(f1,f2) (void)0
-# define O_BINARY 0
+# ifndef O_BINARY
+# define O_BINARY 0
+# endif
# define O_TEXT 0
#endif /* O_BINARY */