From 4b81bc7fe6aad900cf2904c8a22a2c70a8b42659 Mon Sep 17 00:00:00 2001 From: "Andrew M. Kuchling" Date: Mon, 22 Feb 2010 23:12:00 +0000 Subject: [PATCH] #7706: add include guards where they're missing; required for Windows CE --- Modules/_io/fileio.c | 6 ++++++ Modules/signalmodule.c | 7 ++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Modules/_io/fileio.c b/Modules/_io/fileio.c index 59cd3f7ecf5..ec320f79b97 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 +#endif +#ifdef HAVE_SYS_STAT_H #include +#endif +#ifdef HAVE_FCNTL_H #include +#endif #include /* For offsetof */ #include "_iomodule.h" diff --git a/Modules/signalmodule.c b/Modules/signalmodule.c index 905ad2045d2..cecb2bef975 100644 --- a/Modules/signalmodule.c +++ b/Modules/signalmodule.c @@ -7,12 +7,17 @@ #include "intrcheck.h" #ifdef MS_WINDOWS +#ifdef HAVE_PROCESS_H #include #endif +#endif +#ifdef HAVE_SIGNAL_H #include - +#endif +#ifdef HAVE_SYS_STAT_H #include +#endif #ifdef HAVE_SYS_TIME_H #include #endif