File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed
Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 1111 * HEADERS AND INCLUDES
1212 * ============================================================================ */
1313
14- #include <assert.h>
15- #include <errno.h>
16- #include <fcntl.h>
17- #include <stddef.h>
18- #include <stdint.h>
19- #include <stdio.h>
20- #include <stdlib.h>
21- #include <string.h>
22-
2314#ifndef Py_BUILD_CORE_BUILTIN
2415# define Py_BUILD_CORE_MODULE 1
2516#endif
3223#include <internal/pycore_stackref.h> // Py_TAG_BITS
3324#include "../Python/remote_debug.h"
3425
26+ // gh-141784: Python.h header must be included first, before system headers.
27+ // Otherwise, some types such as ino_t can be defined differently, causing ABI
28+ // issues.
29+ #include <assert.h>
30+ #include <errno.h>
31+ #include <fcntl.h>
32+ #include <stddef.h>
33+ #include <stdint.h>
34+ #include <stdio.h>
35+ #include <stdlib.h>
36+ #include <string.h>
37+
3538#ifndef HAVE_PROCESS_VM_READV
3639# define HAVE_PROCESS_VM_READV 0
3740#endif
You can’t perform that action at this time.
0 commit comments