summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-02-22 23:12:00 +0000
committerAndrew M. Kuchling <amk@amk.ca>2010-02-22 23:12:00 +0000
commitdd884f100efec1eeacb6f387a276a1adfaf20bb6 (patch)
treef8e36ef67a0cc0b3197dfb4caec925d7effc1e15
parent26098deba6d3c65043896b24f8fdf7758ca5e0fa (diff)
downloadcpython-dd884f100efec1eeacb6f387a276a1adfaf20bb6.tar.gz
#7706: add include guards where they're missing; required for Windows CE
-rw-r--r--Modules/_io/fileio.c6
-rw-r--r--Modules/signalmodule.c7
2 files changed, 12 insertions, 1 deletions
diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c
index 59cd3f7ecf..ec320f79b9 100644
--- a/Modules/_io/fileio.c
+++ b/Modules/_io/fileio.c
@@ -2,9 +2,15 @@
#define PY_SSIZE_T_CLEAN
#include "Python.h"
+#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
+#endif
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
+#ifdef HAVE_FCNTL_H
#include <fcntl.h>
+#endif
#include <stddef.h> /* For offsetof */
#include "_iomodule.h"
diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c
index 905ad2045d..cecb2bef97 100644
--- a/Modules/signalmodule.c
+++ b/Modules/signalmodule.c
@@ -7,12 +7,17 @@
#include "intrcheck.h"
#ifdef MS_WINDOWS
+#ifdef HAVE_PROCESS_H
#include <process.h>
#endif
+#endif
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
-
+#endif
+#ifdef HAVE_SYS_STAT_H
#include <sys/stat.h>
+#endif
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif