File tree 5 files changed +12
-8
lines changed
5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 26
26
#ifdef HAVE_STDDEF_H
27
27
# include <stddef.h> // size_t
28
28
#endif
29
- #ifndef MS_WINDOWS
30
- # include <unistd .h> // sysconf()
29
+ #ifdef HAVE_SYS_TYPES_H
30
+ # include <sys/types .h> // ssize_t
31
31
#endif
32
32
33
- // errno.h, stdio.h, stdlib.h and string.h headers are no longer used by Python
34
- // headers, but kept for backward compatibility (no introduce new compiler
35
- // warnings). They are not included by the limited C API version 3.11 and
36
- // above.
33
+ // errno.h, stdio.h, stdlib.h and string.h headers are no longer used by
34
+ // Python, but kept for backward compatibility (avoid compiler warnings).
35
+ // They are no longer included by limited C API version 3.11 and newer.
37
36
#if !defined(Py_LIMITED_API ) || Py_LIMITED_API + 0 < 0x030b0000
38
37
# include <errno.h> // errno
39
38
# include <stdio.h> // FILE*
Original file line number Diff line number Diff line change 4
4
#include "Python.h"
5
5
#include "posixmodule.h"
6
6
7
- #include <grp.h>
7
+ #include <grp.h> // getgrgid_r()
8
+ #include <unistd.h> // sysconf()
8
9
9
10
#include "clinic/grpmodule.c.h"
10
11
/*[clinic input]
Original file line number Diff line number Diff line change 28
28
#include "pycore_fileutils.h" // _Py_stat_struct
29
29
30
30
#include <stddef.h> // offsetof()
31
+ #include <unistd.h> // close()
31
32
32
33
// to support MS_WINDOWS_SYSTEM OpenFileMappingA / CreateFileMappingA
33
34
// need to be replaced with OpenFileMappingW / CreateFileMappingW
Original file line number Diff line number Diff line change 4
4
#include "Python.h"
5
5
#include "posixmodule.h"
6
6
7
- #include <pwd.h>
7
+ #include <pwd.h> // getpwuid()
8
+ #include <unistd.h> // sysconf()
9
+
8
10
9
11
#include "clinic/pwdmodule.c.h"
10
12
/*[clinic input]
Original file line number Diff line number Diff line change 17
17
#include "pycore_time.h" // _PyTime_t
18
18
19
19
#include <stddef.h> // offsetof()
20
+ #include <unistd.h> // close()
20
21
21
22
#ifdef HAVE_SYS_DEVPOLL_H
22
23
#include <sys/resource.h>
You can’t perform that action at this time.
0 commit comments