[Patches] [ python-Patches-628898 ] Fix for bug 628890
noreply@sourceforge.net
noreply@sourceforge.net
Fri, 25 Oct 2002 17:10:25 -0700
Patches item #628898, was opened at 2002-10-26 08:10
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=628898&group_id=5470
Category: Build
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Mark Favas (mfavas)
Assigned to: Nobody/Anonymous (nobody)
Summary: Fix for bug 628890
Initial Comment:
This patch fixes the thread and posixmodule compilation
failures on Tru64 Unix 4.0F reported in bug 628890. The
fix requires changes to configure.in and pyconfig.h.in.
The addition of "define _POSIX_C_SOURCE 199506L" fixes
the thread test and compile issue, and the "#define
_XOPEN_SOURCE_EXTENDED" fixes the posixmodule issue.
***NOTE*** The patch below is for configure, not
configure.in - it wasn't clear to me where to patch it,
and I don't have the autoconf tools to test it. The
patch should be clear to anyone who understands
autoconf better than I.
*** pyconfig.h.in.orig Sat Oct 19 10:05:49 2002
--- pyconfig.h.in Sat Oct 19 17:33:01 2002
***************
*** 796,802 ****
/* Define on UNIX to activate XPG/5 features. */
#ifndef _XOPEN_SOURCE
! # define _XOPEN_SOURCE 500
#endif
/* Define to 1 if type `char' is unsigned and you are
not using gcc. */
--- 796,804 ----
/* Define on UNIX to activate XPG/5 features. */
#ifndef _XOPEN_SOURCE
! #define _POSIX_C_SOURCE 199506L
! #define _XOPEN_SOURCE 500
! #define _XOPEN_SOURCE_EXTENDED
#endif
/* Define to 1 if type `char' is unsigned and you are
not using gcc. */
*** configure.orig Sat Oct 19 06:43:17 2002
--- configure Sat Oct 19 17:33:09 2002
***************
*** 1238,1244 ****
--- 1238,1246 ----
cat >>confdefs.h <<\_ACEOF
+ #define _POSIX_C_SOURCE 199506L
#define _XOPEN_SOURCE 500
+ #define _XOPEN_SOURCE_EXTENDED
_ACEOF
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=628898&group_id=5470