diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2010-11-18 22:59:53 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2010-11-18 22:59:53 +0000 |
commit | eef2fa00d96d952b6ed9244693474b826ae9f722 (patch) | |
tree | 19e93a074c6ef4056b807c2f57c44e14f075965d /engines/e_aep.c | |
parent | c55551ad7c5635e78222eaad5cfe7fd87849e9b6 (diff) |
PR: 2375
Submitted by: Guenter <lists@gknw.net>
Reviewed by: steve
cleanup/fix e_aep.c for OpenWatcom
Diffstat (limited to 'engines/e_aep.c')
-rw-r--r-- | engines/e_aep.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/e_aep.c b/engines/e_aep.c index 742b4f9b18..d7f89e5156 100644 --- a/engines/e_aep.c +++ b/engines/e_aep.c @@ -68,6 +68,8 @@ typedef int pid_t; #if defined(OPENSSL_SYS_NETWARE) && defined(NETWARE_CLIB) #define getpid GetThreadID extern int GetThreadID(void); +#elif defined(_WIN32) && !defined(__WATCOMC__) +#define getpid _getpid #endif #include <openssl/crypto.h> @@ -867,13 +869,7 @@ static AEP_RV aep_get_connection(AEP_CONNECTION_HNDL_PTR phConnection) CRYPTO_w_lock(CRYPTO_LOCK_ENGINE); -#ifdef NETWARE_CLIB - curr_pid = GetThreadID(); -#elif defined(_WIN32) - curr_pid = _getpid(); -#else curr_pid = getpid(); -#endif /*Check if this is the first time this is being called from the current process*/ |