]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
fix Cygwin/MSYS compilation
authorOrgad Shaneh <orgad.shaneh@audiocodes.com>
Fri, 5 Aug 2022 10:45:25 +0000 (13:45 +0300)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Sat, 10 Sep 2022 14:34:13 +0000 (16:34 +0200)
_getpid is Windows API. On Cygwin variants it should remain getpid.

Fixes #8220
Closes #9255

lib/smb.c

index 039d6800411bba959f951ef41f990c0412dd8baf..10785f587531c8c906b56fca71655a6c53540651 100644 (file)
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -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