summaryrefslogtreecommitdiff
path: root/Python/thread_pthread.h
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-06-18 22:17:48 +0200
committerAntoine Pitrou <solipsis@pitrou.net>2013-06-18 22:17:48 +0200
commit098f59f18bb2a8cbbe6131af6ac3e7ccd51ecb78 (patch)
tree9cf92b3b6d21c40b3a2114cb7eb3c790bff980aa /Python/thread_pthread.h
parent3f21317bef96e662a5afa747fbdfcd064d7660f5 (diff)
downloadcpython-098f59f18bb2a8cbbe6131af6ac3e7ccd51ecb78.tar.gz
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
Diffstat (limited to 'Python/thread_pthread.h')
-rw-r--r--Python/thread_pthread.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/thread_pthread.h b/Python/thread_pthread.h
index 49713ced27..e90ae7e5b9 100644
--- a/Python/thread_pthread.h
+++ b/Python/thread_pthread.h
@@ -170,6 +170,7 @@ static void
PyThread__init_thread(void)
{
#if defined(_AIX) && defined(__GNUC__)
+ extern void pthread_init(void);
pthread_init();
#endif
}
@@ -444,6 +445,7 @@ PyThread_free_lock(PyThread_type_lock lock)
pthread_lock *thelock = (pthread_lock *)lock;
int status, error = 0;
+ (void) error; /* silence unused-but-set-variable warning */
dprintf(("PyThread_free_lock(%p) called\n", lock));
/* some pthread-like implementations tie the mutex to the cond
@@ -530,6 +532,7 @@ PyThread_release_lock(PyThread_type_lock lock)
pthread_lock *thelock = (pthread_lock *)lock;
int status, error = 0;
+ (void) error; /* silence unused-but-set-variable warning */
dprintf(("PyThread_release_lock(%p) called\n", lock));
status = pthread_mutex_lock( &thelock->mut );