mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Issue #18256: Compilation fix for recent AIX releases. Patch by David Edelsohn.
This commit is contained in:
commit
1a1a06ee36
3 changed files with 7 additions and 0 deletions
|
@ -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 );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue