Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
a7a76d3d
Commit
a7a76d3d
authored
Oct 04, 2002
by
Martin v. Löwis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch #618347: Work around Solaris 2.6 pthread.h bug. Will backport to 2.2.
parent
3d61a06a
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
25 additions
and
3 deletions
+25
-3
Python/thread_pthread.h
Python/thread_pthread.h
+2
-2
configure
configure
+12
-1
configure.in
configure.in
+8
-0
pyconfig.h.in
pyconfig.h.in
+3
-0
No files found.
Python/thread_pthread.h
View file @
a7a76d3d
...
...
@@ -3,11 +3,11 @@
#include <stdlib.h>
#include <string.h>
#if
def __APPLE__
#if
defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR)
#define destructor xxdestructor
#endif
#include <pthread.h>
#if
def __APPLE__
#if
defined(__APPLE__) || defined(HAVE_PTHREAD_DESTRUCTOR)
#undef destructor
#endif
#include <signal.h>
...
...
configure
View file @
a7a76d3d
#! /bin/sh
# From configure.in Revision: 1.34
8
.
# From configure.in Revision: 1.34
9
.
# Guess values for system-dependent variables and create Makefiles.
# Generated by GNU Autoconf 2.53.
#
...
...
@@ -10885,6 +10885,17 @@ fi
OSF1
)
LDLAST
=
-threads
;;
esac
fi
if
test
"
$posix_threads
"
=
yes
-a
\
"
$ac_sys_system
"
=
"SunOS"
-a
\
"
$ac_sys_release
"
=
"5.6"
;
then
cat
>>
confdefs.h
<<
\
_ACEOF
#define HAVE_PTHREAD_DESTRUCTOR 1
_ACEOF
fi
fi
# Check for enable-ipv6
...
...
configure.in
View file @
a7a76d3d
...
...
@@ -1326,6 +1326,14 @@ pthread_create (NULL, NULL, start_routine, NULL)], [
OSF1) LDLAST=-threads;;
esac
fi
if test "$posix_threads" = yes -a \
"$ac_sys_system" = "SunOS" -a \
"$ac_sys_release" = "5.6"; then
AC_DEFINE(HAVE_PTHREAD_DESTRUCTOR, 1,
[Defined for Solaris 2.6 bug in pthread header.])
fi
fi
# Check for enable-ipv6
...
...
pyconfig.h.in
View file @
a7a76d3d
...
...
@@ -304,6 +304,9 @@
/* Define if you have GNU PTH threads. */
#undef HAVE_PTH
/* Defined for Solaris 2.6 bug in pthread header. */
#undef HAVE_PTHREAD_DESTRUCTOR
/* Define to 1 if you have the <pthread.h> header file. */
#undef HAVE_PTHREAD_H
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment