提交 9ac0708f 编写于 作者: D Dr. Stephen Henson

PR: 2375

Submitted by: Guenter <lists@gknw.net>
Reviewed by: steve

cleanup/fix e_aep.c for OpenWatcom
上级 6b02f9fa
...@@ -68,6 +68,8 @@ typedef int pid_t; ...@@ -68,6 +68,8 @@ typedef int pid_t;
#if defined(OPENSSL_SYS_NETWARE) && defined(NETWARE_CLIB) #if defined(OPENSSL_SYS_NETWARE) && defined(NETWARE_CLIB)
#define getpid GetThreadID #define getpid GetThreadID
extern int GetThreadID(void); extern int GetThreadID(void);
#elif defined(_WIN32) && !defined(__WATCOMC__)
#define getpid _getpid
#endif #endif
#include <openssl/crypto.h> #include <openssl/crypto.h>
...@@ -867,13 +869,7 @@ static AEP_RV aep_get_connection(AEP_CONNECTION_HNDL_PTR phConnection) ...@@ -867,13 +869,7 @@ static AEP_RV aep_get_connection(AEP_CONNECTION_HNDL_PTR phConnection)
CRYPTO_w_lock(CRYPTO_LOCK_ENGINE); CRYPTO_w_lock(CRYPTO_LOCK_ENGINE);
#ifdef NETWARE_CLIB
curr_pid = GetThreadID();
#elif defined(_WIN32)
curr_pid = _getpid();
#else
curr_pid = getpid(); curr_pid = getpid();
#endif
/*Check if this is the first time this is being called from the current /*Check if this is the first time this is being called from the current
process*/ process*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册