summaryrefslogtreecommitdiff
path: root/extra/yassl/include
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-10-16 18:36:33 +0200
committerunknown <msvensson@neptunus.(none)>2006-10-16 18:36:33 +0200
commit46d7f12fca9e097d75df52ec877fc9e3f4fdfb58 (patch)
tree763d58d03a13ba204aaeabe302f36478e79c2cb5 /extra/yassl/include
parent0ace2b44ba0410e901d18c5315837647c8436c1d (diff)
downloadmariadb-git-46d7f12fca9e097d75df52ec877fc9e3f4fdfb58.tar.gz
yassl build fixes for hpux and netware
extra/yassl/include/yassl_int.hpp: Netware and HPUX need the _POSIX_THREADS define to be forced extra/yassl/taocrypt/include/hmac.hpp: Prefix with HMAC as we get symbol conflicts on HPUX
Diffstat (limited to 'extra/yassl/include')
-rw-r--r--extra/yassl/include/yassl_int.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/extra/yassl/include/yassl_int.hpp b/extra/yassl/include/yassl_int.hpp
index 28e9d237622..0edff289b61 100644
--- a/extra/yassl/include/yassl_int.hpp
+++ b/extra/yassl/include/yassl_int.hpp
@@ -40,6 +40,13 @@
#include "lock.hpp"
#include "openssl/ssl.h" // ASN1_STRING and DH
+// Check if _POSIX_THREADS should be forced
+#if !defined(_POSIX_THREADS) && (defined(__NETWARE__) || defined(__hpux))
+// HPUX does not define _POSIX_THREADS as it's not _fully_ implemented
+// Netware supports pthreads but does not announce it
+#define _POSIX_THREADS
+#endif
+
#ifdef _POSIX_THREADS
#include <pthread.h>
#endif