[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: system.h:214 ?
From: |
Paul Eggert |
Subject: |
Re: system.h:214 ? |
Date: |
Sat, 07 Aug 2004 20:05:55 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
Johan <address@hidden> writes:
> well, qnx *DO* define O_BINARY... as 0. :)
>
> Gives a bunch of anoying compiler messages, parhaps this should be
> changed to #ifdef ?
Thanks for the report. I installed this patch: does it work for you?
2004-08-07 Paul Eggert <address@hidden>
* src/system.h (O_BINARY) [!O_BINARY && defined O_BINARY]:
Do not define, to avoid annoying compiler messages on QNX 6.3.
Problem reported by Johan in:
http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00050.html
Index: src/system.h
===================================================================
RCS file: /home/eggert/coreutils/cu/src/system.h,v
retrieving revision 1.93
retrieving revision 1.94
diff -p -u -r1.93 -r1.94
--- src/system.h 4 Aug 2004 22:26:23 -0000 1.93
+++ src/system.h 8 Aug 2004 03:04:00 -0000 1.94
@@ -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 */