mirror of https://github.com/openssl/openssl.git
apps/lib/s_socket.c: Alias getpid with _getpid for _WIN32
Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15710)
This commit is contained in:
parent
baa47ad3b1
commit
814b5133e9
|
@ -26,6 +26,15 @@
|
||||||
typedef unsigned int u_int;
|
typedef unsigned int u_int;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifdef _WIN32
|
||||||
|
/*
|
||||||
|
* With MSVC, certain POSIX functions have been renamed to have an underscore
|
||||||
|
* prefix.
|
||||||
|
*/
|
||||||
|
# include <process.h>
|
||||||
|
# define getpid _getpid
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef OPENSSL_NO_SOCK
|
#ifndef OPENSSL_NO_SOCK
|
||||||
|
|
||||||
# include "apps.h"
|
# include "apps.h"
|
||||||
|
|
Loading…
Reference in New Issue