summaryrefslogtreecommitdiffstats
path: root/engines
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2008-01-03 22:43:04 +0000
committerDr. Stephen Henson <steve@openssl.org>2008-01-03 22:43:04 +0000
commiteef0c1f34c7b7d6a38e02f3294eb509aef081749 (patch)
treefb49441433ca3bf20230eeeca5a6e423a9888174 /engines
parent82a243132723ac27a81d689722e94e05e18992a0 (diff)
Netware support.
Submitted by: Guenter Knauf <eflash@gmx.net>
Diffstat (limited to 'engines')
-rw-r--r--engines/e_aep.c5
-rw-r--r--engines/e_padlock.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/engines/e_aep.c b/engines/e_aep.c
index 7307ddfafb..ffdc354cdc 100644
--- a/engines/e_aep.c
+++ b/engines/e_aep.c
@@ -65,6 +65,11 @@
typedef int pid_t;
#endif
+#if defined(OPENSSL_SYS_NETWARE) && defined(NETWARE_CLIB)
+#define getpid GetThreadID
+extern int GetThreadID(void);
+#endif
+
#include <openssl/crypto.h>
#include <openssl/dso.h>
#include <openssl/engine.h>
diff --git a/engines/e_padlock.c b/engines/e_padlock.c
index 20d458c1c1..64a13e754c 100644
--- a/engines/e_padlock.c
+++ b/engines/e_padlock.c
@@ -128,6 +128,9 @@ void ENGINE_load_padlock (void)
# ifndef alloca
# define alloca _alloca
# endif
+#elif defined(NETWARE_CLIB) && defined(__GNUC__)
+ void *alloca(size_t);
+# define alloca(s) __builtin_alloca(s)
#else
# include <stdlib.h>
#endif