From 7ccca29f1d945d095506728d795b6aae10a3259c Mon Sep 17 00:00:00 2001 From: Stas Degteff Date: Sun, 21 Mar 2010 21:11:53 +0000 Subject: [PATCH] Fix DJGPP build with GCC 4.4.2 --- goldlib/gall/gfilutil.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/goldlib/gall/gfilutil.h b/goldlib/gall/gfilutil.h index 91a7428..2a48fb2 100644 --- a/goldlib/gall/gfilutil.h +++ b/goldlib/gall/gfilutil.h @@ -46,7 +46,7 @@ #include #include #include -#if !defined(__UNIX__) +#if !defined(__UNIX__) || defined(__DJGPP__) #include #endif #include @@ -59,6 +59,12 @@ #define O_TEXT 0 #define O_BINARY 0 #endif +#ifndef O_TEXT +#define O_TEXT 0 +#endif +#ifndef O_BINARY +#define O_BINARY 0 +#endif #endif #ifndef S_IWUSR