summaryrefslogtreecommitdiffstats
path: root/Objects/fileobject.c
diff options
context:
space:
mode:
authorAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-02-26 11:36:35 (GMT)
committerAndrew MacIntyre <andymac@bullseye.apana.org.au>2002-02-26 11:36:35 (GMT)
commitc487439aa79acaf6c83a65985c110d5ca1ea71da (patch)
tree82e92be005591f583ab902c6f6755ba046d41f56 /Objects/fileobject.c
parent5e090fc98525308d2a86eaf5c535c3c2ba1a644c (diff)
downloadcpython-c487439aa79acaf6c83a65985c110d5ca1ea71da.zip
cpython-c487439aa79acaf6c83a65985c110d5ca1ea71da.tar.gz
cpython-c487439aa79acaf6c83a65985c110d5ca1ea71da.tar.bz2
OS/2 EMX port changes (Objects part of patch #450267):
Objects/ fileobject.c stringobject.c unicodeobject.c This commit doesn't include the cleanup patches for stringobject.c and unicodeobject.c which are shown separately in the patch manager. Those patches will be regenerated and applied in a subsequent commit, so as to preserve a fallback position (this commit to those files).
Diffstat (limited to 'Objects/fileobject.c')
-rw-r--r--Objects/fileobject.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Objects/fileobject.c b/Objects/fileobject.c
index 125da70..d6b2229 100644
--- a/Objects/fileobject.c
+++ b/Objects/fileobject.c
@@ -25,6 +25,10 @@
#define NO_FOPEN_ERRNO
#endif
+#if defined(PYOS_OS2) && defined(PYCC_GCC)
+#include <io.h>
+#endif
+
#define BUF(v) PyString_AS_STRING((PyStringObject *)v)
#ifndef DONT_HAVE_ERRNO_H