changeset 4611:35fed2680490

Avoid warning on QNX.
author Bruno Haible <bruno@clisp.org>
date Thu, 28 Aug 2003 13:59:25 +0000
parents f67b648851c7
children 3e3decc75fcd
files lib/ChangeLog lib/binary-io.h
diffstat 2 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/lib/ChangeLog
+++ b/lib/ChangeLog
@@ -1,3 +1,8 @@
+2003-08-28  Bruno Haible  <bruno@clisp.org>
+
+	* binary-io.h: Undefine O_BINARY before defining it. This avoids a
+	warning on QNX, which defines O_BINARY to 000000.
+
 2003-08-24  Bruno Haible  <bruno@clisp.org>
 
 	* binary-io.h: Include <stdio.h>, to avoid a compilation error when
--- a/lib/binary-io.h
+++ b/lib/binary-io.h
@@ -53,6 +53,7 @@
 # endif
 #else
   /* On reasonable systems, binary I/O is the default.  */
+# undef O_BINARY
 # define O_BINARY 0
 # define SET_BINARY(fd) /* nothing */
 #endif