From 1c52e8a3795ccdf8ec9c308f4f8f19cf10ea1f1a Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Fri, 5 Aug 2022 13:45:25 +0300 Subject: [PATCH] fix Cygwin/MSYS compilation _getpid is Windows API. On Cygwin variants it should remain getpid. Fixes #8220 Closes #9255 --- lib/smb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/smb.c b/lib/smb.c index 039d680041..10785f5875 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -34,7 +34,7 @@ #include #ifdef CURL_WINDOWS_APP #define getpid GetCurrentProcessId -#elif !defined(MSDOS) +#elif defined(CURL_WIN32) #define getpid _getpid #endif #endif -- 2.47.3