annotate src/vmime-99999-fix-pthreads.patch @ 995:ca1299bb06e3

fix use of pthreads in package vmime The configure option "-without-pthread" seems not to work even if it is listed as a configure option. As long as pthreads is available, it is detected. This meant that the configuration of vmime dependend on whether pthreads had already been installed, even though pthreads was not listed as a dependency. The solution seems to be to add the missing #include <pthread.h> and allow pthreads to be used. Also now build one of the examples as test-vmime.exe.
author Mark Brand <mabrand@mabrand.nl>
date Thu, 20 May 2010 23:23:33 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
995
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
1 This file is part of mingw-cross-env.
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
2 See doc/index.html for further information.
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
3
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
4 This patch has been taken from:
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
5 https://sourceforge.net/tracker/?func=detail&aid=3004924&group_id=69724&atid=525570
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
6
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
7 diff -urN a/src/net/tls/TLSSession.cpp b/src/net/tls/TLSSession.cpp
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
8 --- a/src/net/tls/TLSSession.cpp 2010-05-20 12:19:24.163128483 +0200
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
9 +++ b/src/net/tls/TLSSession.cpp 2010-05-20 12:21:31.979114130 +0200
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
10 @@ -27,6 +27,7 @@
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
11 #include "vmime/config.hpp"
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
12
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
13 #if VMIME_HAVE_PTHREAD
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
14 +# include <pthread.h>
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
15 # include <gcrypt.h>
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
16 # include <errno.h>
ca1299bb06e3 fix use of pthreads in package vmime
Mark Brand <mabrand@mabrand.nl>
parents:
diff changeset
17 #endif // VMIME_HAVE_PTHREAD