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.pull/13/head
parent
633423723e
commit
f4e091908b
@ -0,0 +1,17 @@
|
||||
This file is part of mingw-cross-env.
|
||||
See doc/index.html for further information.
|
||||
|
||||
This patch has been taken from:
|
||||
https://sourceforge.net/tracker/?func=detail&aid=3004924&group_id=69724&atid=525570
|
||||
|
||||
diff -urN a/src/net/tls/TLSSession.cpp b/src/net/tls/TLSSession.cpp
|
||||
--- a/src/net/tls/TLSSession.cpp 2010-05-20 12:19:24.163128483 +0200
|
||||
+++ b/src/net/tls/TLSSession.cpp 2010-05-20 12:21:31.979114130 +0200
|
||||
@@ -27,6 +27,7 @@
|
||||
#include "vmime/config.hpp"
|
||||
|
||||
#if VMIME_HAVE_PTHREAD
|
||||
+# include <pthread.h>
|
||||
# include <gcrypt.h>
|
||||
# include <errno.h>
|
||||
#endif // VMIME_HAVE_PTHREAD
|
Loading…
Reference in new issue