Skip to content

Commit 186f966

Browse files
committed
Include pyconfig.h in Python.h and define _GNU_SOURCE
1 parent 16eda50 commit 186f966

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

graalpython/com.oracle.graal.python.cext/include/Python.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
#ifndef Py_PYTHON_H
4242
#define Py_PYTHON_H
4343

44+
#include "pyconfig.h"
45+
4446
#define HAVE_UTIME_H
4547
#define HAVE_UNISTD_H
4648
#define HAVE_SIGNAL_H

graalpython/com.oracle.graal.python.cext/include/pyconfig.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,11 @@
6969
/* Define to 1 if you have the ANSI C header files. */
7070
#define STDC_HEADERS 1
7171

72+
/* Enable GNU extensions on systems that have them. */
73+
#ifndef _GNU_SOURCE
74+
#define _GNU_SOURCE 1
75+
#endif
76+
7277
# ifndef UINT_MAX
7378
#define UINT_MAX __UINT32_MAX__
7479
#endif

0 commit comments

Comments
 (0)