]> granicus.if.org Git - curl/commitdiff
smb: Use HAVE_PROCESS_H for process.h inclusion
authorSteve Holme <steve_holme@hotmail.com>
Sun, 14 Dec 2014 16:42:08 +0000 (16:42 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Sun, 14 Dec 2014 16:42:08 +0000 (16:42 +0000)
Rather than testing against _WIN32 use the preferred HAVE_PROCESS_H
pre-processor define when including process.h.

lib/smb.c

index ffa75ea19c42b26a9c862411081b0a0270800bf1..b310b0e1763fb9a97032993b1f6c49da33443667 100644 (file)
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -29,7 +29,7 @@
 
 #define BUILDING_CURL_SMB_C
 
-#ifdef _WIN32
+#ifdef HAVE_PROCESS_H
 #include <process.h>
 #define getpid _getpid
 #endif