Skip to content

Commit 4b81bc7

Browse files
committed
#7706: add include guards where they're missing; required for Windows CE
1 parent 00b6a5c commit 4b81bc7

2 files changed

Lines changed: 12 additions & 1 deletion

File tree

Modules/_io/fileio.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
#define PY_SSIZE_T_CLEAN
44
#include "Python.h"
5+
#ifdef HAVE_SYS_TYPES_H
56
#include <sys/types.h>
7+
#endif
8+
#ifdef HAVE_SYS_STAT_H
69
#include <sys/stat.h>
10+
#endif
11+
#ifdef HAVE_FCNTL_H
712
#include <fcntl.h>
13+
#endif
814
#include <stddef.h> /* For offsetof */
915
#include "_iomodule.h"
1016

Modules/signalmodule.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@
77
#include "intrcheck.h"
88

99
#ifdef MS_WINDOWS
10+
#ifdef HAVE_PROCESS_H
1011
#include <process.h>
1112
#endif
13+
#endif
1214

15+
#ifdef HAVE_SIGNAL_H
1316
#include <signal.h>
14-
17+
#endif
18+
#ifdef HAVE_SYS_STAT_H
1519
#include <sys/stat.h>
20+
#endif
1621
#ifdef HAVE_SYS_TIME_H
1722
#include <sys/time.h>
1823
#endif

0 commit comments

Comments
 (0)