fix Cygwin/MSYS compilation

_getpid is Windows API. On Cygwin variants it should remain getpid.

Fixes #8220
Closes #9255
This commit is contained in:
Orgad Shaneh 2022-08-05 13:45:25 +03:00 committed by Marcel Raad
parent 0af3edfef8
commit 1c52e8a379
No known key found for this signature in database
GPG Key ID: A84FFB967F8660E4

View File

@ -34,7 +34,7 @@
#include <process.h>
#ifdef CURL_WINDOWS_APP
#define getpid GetCurrentProcessId
#elif !defined(MSDOS)
#elif defined(CURL_WIN32)
#define getpid _getpid
#endif
#endif