Include pthread.h to grab pthread prototypes
This commit is contained in:
parent
55d13e113a
commit
09a88f533f
@ -170,13 +170,15 @@
|
||||
MY_END_ALLOW_THREADS(self->tstate);
|
||||
--- pyOpenSSL-0.6/src/crypto/crypto.c.threadsafe 2004-08-09 10:56:05.000000000 -0400
|
||||
+++ pyOpenSSL-0.6/src/crypto/crypto.c 2005-07-12 22:29:32.000000000 -0400
|
||||
@@ -668,6 +668,72 @@
|
||||
@@ -668,6 +668,74 @@
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
+
|
||||
+#ifdef WITH_THREAD
|
||||
+
|
||||
+#include <pthread.h>
|
||||
+
|
||||
+#define MUTEX_TYPE pthread_mutex_t
|
||||
+#define MUTEX_SETUP(x) pthread_mutex_init(&(x), NULL)
|
||||
+#define MUTEX_CLEANUP(x) pthread_mutex_destroy(&(x))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user