commit | 4b81bc7fe6aad900cf2904c8a22a2c70a8b42659 | [log] [tgz] |
---|---|---|
author | Andrew M. Kuchling <amk@amk.ca> | Mon Feb 22 23:12:00 2010 +0000 |
committer | Andrew M. Kuchling <amk@amk.ca> | Mon Feb 22 23:12:00 2010 +0000 |
tree | 37047682ed193b56036d495813ae275b2b2094f2 | |
parent | 00b6a5c03d46ac328f0ae77341276decb9f2b3a8 [diff] |
#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 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"