# HG changeset patch # User Bruno Haible # Date 1062079165 0 # Node ID 35fed26804902f7eabb472c729c6c6f86d42ff9f # Parent f67b648851c75fba3e7187966a7b3f8c5f4daec8 Avoid warning on QNX. diff --git a/lib/ChangeLog b/lib/ChangeLog --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2003-08-28 Bruno Haible + + * 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 * binary-io.h: Include , to avoid a compilation error when diff --git a/lib/binary-io.h b/lib/binary-io.h --- 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