summaryrefslogtreecommitdiffstats
path: root/Modules/posixmodule.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-06-10 12:23:46 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-06-10 12:23:46 (GMT)
commit0e8bd7e1ccf7f47bc0bb920af899c77669016d3d (patch)
treea2724cb3463072f259b31175662d9a03ed02b4c3 /Modules/posixmodule.c
parentacd0d6d4160c6b7f12d80807a4312f6f57338b4d (diff)
downloadcpython-0e8bd7e1ccf7f47bc0bb920af899c77669016d3d.zip
cpython-0e8bd7e1ccf7f47bc0bb920af899c77669016d3d.tar.gz
cpython-0e8bd7e1ccf7f47bc0bb920af899c77669016d3d.tar.bz2
Patch #1495999: Part two of Windows CE changes.
- update header checks, using autoconf - provide dummies for getenv, environ, and GetVersion - adjust MSC_VER check in socketmodule.c
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r--Modules/posixmodule.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 12e1c83..6dcf1b0 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -64,14 +64,21 @@ corresponding Unix manual entries for more information on calls.");
#include "osdefs.h"
#endif
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif /* HAVE_SYS_TYPES_H */
+
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif /* HAVE_SYS_STAT_H */
#ifdef HAVE_SYS_WAIT_H
#include <sys/wait.h> /* For WNOHANG */
#endif
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
+#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
@@ -246,9 +253,15 @@ extern int lstat(const char *, struct stat *);
#endif
#ifdef _MSC_VER
+#ifdef HAVE_DIRECT_H
#include <direct.h>
+#endif
+#ifdef HAVE_IO_H
#include <io.h>
+#endif
+#ifdef HAVE_PROCESS_H
#include <process.h>
+#endif
#include "osdefs.h"
#define _WIN32_WINNT 0x0400 /* Needed for CryptoAPI on some systems */
#include <windows.h>