]> granicus.if.org Git - curl/commitdiff
smb: fix build for djgpp/MSDOS
authorGisle Vanem <gisle.vanem@gmail.com>
Tue, 4 Jul 2017 13:42:33 +0000 (15:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 4 Jul 2017 13:42:55 +0000 (15:42 +0200)
bug: https://curl.haxx.se/mail/lib-2017-07/0005.html

lib/smb.c

index c2df43b707140f522678906d1cf10d3366946980..45545628a83772f885dbf5172131f5a50b2078ac 100644 (file)
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -34,7 +34,7 @@
 #include <process.h>
 #ifdef CURL_WINDOWS_APP
 #define getpid GetCurrentProcessId
-#else
+#elif !defined(MSDOS)
 #define getpid _getpid
 #endif
 #endif