Commit 9a179d01 authored by Guido van Rossum's avatar Guido van Rossum

Patch by Mark Hammond to avoid certain header files on Windows/CE.

parent f30f7f14
...@@ -4,7 +4,9 @@ ...@@ -4,7 +4,9 @@
#include "macbuildno.h" #include "macbuildno.h"
#endif #endif
#ifndef DONT_HAVE_STDIO_H
#include <stdio.h> #include <stdio.h>
#endif
#ifndef DATE #ifndef DATE
#ifdef __DATE__ #ifdef __DATE__
......
...@@ -48,7 +48,9 @@ PERFORMANCE OF THIS SOFTWARE. ...@@ -48,7 +48,9 @@ PERFORMANCE OF THIS SOFTWARE.
extern void bzero(); extern void bzero();
#endif #endif
#ifndef DONT_HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif
#if defined(PYOS_OS2) #if defined(PYOS_OS2)
#include <sys/time.h> #include <sys/time.h>
......
...@@ -34,7 +34,9 @@ PERFORMANCE OF THIS SOFTWARE. ...@@ -34,7 +34,9 @@ PERFORMANCE OF THIS SOFTWARE.
#include "Python.h" #include "Python.h"
#include "structmember.h" #include "structmember.h"
#ifndef DONT_HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#endif /* DONT_HAVE_SYS_TYPES_H */
#ifdef HAVE_UNISTD_H #ifdef HAVE_UNISTD_H
#include <unistd.h> #include <unistd.h>
...@@ -62,7 +64,9 @@ PERFORMANCE OF THIS SOFTWARE. ...@@ -62,7 +64,9 @@ PERFORMANCE OF THIS SOFTWARE.
#define BUF(v) PyString_AS_STRING((PyStringObject *)v) #define BUF(v) PyString_AS_STRING((PyStringObject *)v)
#ifndef DONT_HAVE_ERRNO_H
#include <errno.h> #include <errno.h>
#endif
typedef struct { typedef struct {
PyObject_HEAD PyObject_HEAD
...@@ -441,11 +445,16 @@ file_isatty(f, args) ...@@ -441,11 +445,16 @@ file_isatty(f, args)
#ifndef DONT_HAVE_FSTAT #ifndef DONT_HAVE_FSTAT
#define HAVE_FSTAT #define HAVE_FSTAT
#ifndef DONT_HAVE_SYS_TYPES_H
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #endif
#ifndef DONT_HAVE_SYS_STAT_H
#include <sys/stat.h>
#endif #endif
#endif /* DONT_HAVE_FSTAT */
#if BUFSIZ < 8192 #if BUFSIZ < 8192
#define SMALLCHUNK 8192 #define SMALLCHUNK 8192
#else #else
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment