aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python-internal.h
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/python-internal.h')
-rw-r--r--gdb/python/python-internal.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/python/python-internal.h b/gdb/python/python-internal.h
index daaed2c..630d191 100644
--- a/gdb/python/python-internal.h
+++ b/gdb/python/python-internal.h
@@ -30,8 +30,11 @@
if it sees _GNU_SOURCE (which config.h will define).
pyconfig.h defines _POSIX_C_SOURCE to a different value than
/usr/include/features.h does causing compilation to fail.
- To work around this, undef _POSIX_C_SOURCE before we include Python.h. */
+ To work around this, undef _POSIX_C_SOURCE before we include Python.h.
+
+ Same problem with _XOPEN_SOURCE. */
#undef _POSIX_C_SOURCE
+#undef _XOPEN_SOURCE
#if HAVE_LIBPYTHON2_4
#include "python2.4/Python.h"