summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2010-02-22 23:12:00 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2010-02-22 23:12:00 (GMT)
commit4b81bc7fe6aad900cf2904c8a22a2c70a8b42659 (patch)
tree37047682ed193b56036d495813ae275b2b2094f2
parent00b6a5c03d46ac328f0ae77341276decb9f2b3a8 (diff)
downloadcpython-4b81bc7fe6aad900cf2904c8a22a2c70a8b42659.zip
cpython-4b81bc7fe6aad900cf2904c8a22a2c70a8b42659.tar.gz
cpython-4b81bc7fe6aad900cf2904c8a22a2c70a8b42659.tar.bz2
#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 59cd3f7..ec320f7 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 905ad20..cecb2be 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