binutils-gdb/gdb/python
Joel Brobecker aac63f0f26 Fix build failure with Python installed in non-system location.
The debugger fails to build when configure with --python-python=<path>
where <path> is a non-system location.  The reason is a warning made
fatal due to the definition of _XOPEN_SOURCE inside pyconfig.h.  This
is exactly the same problem as with _POSIX_C_SOURCE, handled in
python-internal.h as follow:

| /* /usr/include/features.h on linux systems will define _POSIX_C_SOURCE
|    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.  */
| #undef _POSIX_C_SOURCE

This patch fixes this problem the same way.

2010-06-30  Joel Brobecker  <brobecker@adacore.com>

        * python/python-internal.h (_XOPEN_SOURCE): Undefine before
        including Python.h.
2010-06-30 23:12:04 +00:00
..
py-auto-load.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-block.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-breakpoint.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-cmd.c Add python gdb.GdbError and gdb.string_to_argv. 2010-05-25 15:27:17 +00:00
py-frame.c 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> 2010-06-28 21:16:04 +00:00
py-function.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-inferior.c 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> 2010-06-28 21:16:04 +00:00
py-infthread.c 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> 2010-06-28 21:16:04 +00:00
py-lazy-string.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-objfile.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-param.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-prettyprint.c gdb 2010-06-11 15:36:10 +00:00
py-progspace.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-symbol.c 2010-02-24 Phil Muldoon <pmuldoon@redhat.com> 2010-02-24 21:18:28 +00:00
py-symtab.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-type.c 2010-05-17 Michael Snyder <msnyder@vmware.com> 2010-05-17 21:23:25 +00:00
py-utils.c 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> 2010-06-28 21:16:04 +00:00
py-value.c 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> 2010-06-28 21:16:04 +00:00
python-config.py * configure.ac: Try to use python's distutils to fetch compilation 2010-05-27 01:36:22 +00:00
python-internal.h Fix build failure with Python installed in non-system location. 2010-06-30 23:12:04 +00:00
python.c 2010-06-28 Phil Muldoon <pmuldoon@redhat.com> 2010-06-28 21:16:04 +00:00
python.h gdb 2010-06-11 15:36:10 +00:00