rpms/pyOpenSSL/devel pyOpenSSL-threadsafe.patch,1.1,1.2
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Wed Jan 18 03:14:51 UTC 2006
Author: dcbw
Update of /cvs/dist/rpms/pyOpenSSL/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv27612
Modified Files:
pyOpenSSL-threadsafe.patch
Log Message:
Include pthread.h to grab pthread prototypes
pyOpenSSL-threadsafe.patch:
crypto/crypto.c | 72 +++++++++++++++++++++++++++++++++++++++++
ssl/context.c | 97 +++++++++++++++++++++++---------------------------------
2 files changed, 113 insertions(+), 56 deletions(-)
Index: pyOpenSSL-threadsafe.patch
===================================================================
RCS file: /cvs/dist/rpms/pyOpenSSL/devel/pyOpenSSL-threadsafe.patch,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- pyOpenSSL-threadsafe.patch 13 Jul 2005 03:14:08 -0000 1.1
+++ pyOpenSSL-threadsafe.patch 18 Jan 2006 03:14:47 -0000 1.2
@@ -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))
More information about the fedora-cvs-commits
mailing list