posix: protect EOF being parsed as operator and 1

see https://github.com/haikuports/haikuports/blob/7d095c7453842db989de538921ff9e145114bc9b/dev-libs/jsoncpp/patches/jsoncpp-1.9.4.patchset

Change-Id: Iaedb67eb51e86cbc5b73a21a86b6b0b6b70209b0
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3679
Reviewed-by: waddlesplash <[email protected]>
This commit is contained in:
Jérôme Duval
2021-01-25 18:53:43 +00:00
parent 170aff0a14
commit 9a7acbdbcf
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@
#include <stdarg.h>
#ifndef EOF
# define EOF -1
# define EOF (-1)
#endif
#define _IO_pos_t off_t /* obsolete */
+1 -1
View File
@@ -39,7 +39,7 @@
#ifdef EOF
# undef EOF
#endif
#define EOF -1
#define EOF (-1)
#ifndef SEEK_SET
# define SEEK_SET 0