Fix DJGPP build with GCC 4.4.2

This commit is contained in:
Stas Degteff 2010-03-21 21:11:53 +00:00
parent 9ed87aece7
commit 7ccca29f1d

View File

@ -46,7 +46,7 @@
#include <cstdio>
#include <string>
#include <gshare.h>
#if !defined(__UNIX__)
#if !defined(__UNIX__) || defined(__DJGPP__)
#include <io.h>
#endif
#include <gdefs.h>
@ -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