+2010-10-26 Joel Brobecker <brobecker@adacore.com>
+
+ * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
+ (PyEval_InitThreads): Remove duplicate. Define as nothing.
+ (PyEval_ReleaseLock): Define as nothing.
+
2010-10-26 Joel Brobecker <brobecker@adacore.com>
* dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
#undef _POSIX_C_SOURCE
#undef _XOPEN_SOURCE
+/* On sparc-solaris, /usr/include/sys/feature_tests.h defines
+ _FILE_OFFSET_BITS, which pyconfig.h also defines. Same work
+ arount technique as above. */
+#undef _FILE_OFFSET_BITS
+
#if HAVE_LIBPYTHON2_4
#include "python2.4/Python.h"
#include "python2.4/frameobject.h"
#ifndef WITH_THREAD
#define PyGILState_Ensure() ((PyGILState_STATE) 0)
#define PyGILState_Release(ARG) ((void)(ARG))
-#define PyEval_InitThreads() 0
+#define PyEval_InitThreads()
#define PyThreadState_Swap(ARG) ((void)(ARG))
-#define PyEval_InitThreads() 0
-#define PyEval_ReleaseLock() 0
+#define PyEval_ReleaseLock()
#endif
/* In order to be able to parse symtab_and_line_to_sal_object function