From: Andrew M. Kuchling Date: Mon, 22 Feb 2010 23:12:00 +0000 (+0000) Subject: #7706: add include guards where they're missing; required for Windows CE X-Git-Tag: v2.7a4~142 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4b81bc7fe6aad900cf2904c8a22a2c70a8b42659;p=python #7706: add include guards where they're missing; required for Windows CE --- 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 +#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 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 #endif +#endif +#ifdef HAVE_SIGNAL_H #include - +#endif +#ifdef HAVE_SYS_STAT_H #include +#endif #ifdef HAVE_SYS_TIME_H #include #endif