summaryrefslogtreecommitdiff
path: root/lib/smb.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-02-20 10:27:51 +0100
committerDaniel Stenberg <daniel@haxx.se>2017-02-20 10:27:51 +0100
commitde1c1a8d8564e8d80ce384b19572228d87e7d8bc (patch)
treea3a80df243e5d07f49f479aec05fb7d2500a5c11 /lib/smb.c
parent73ef4ed612397c0391ddba232c556d91f7abddf5 (diff)
downloadcurl-de1c1a8d8564e8d80ce384b19572228d87e7d8bc.tar.gz
smb: use getpid replacement for windows UWP builds
Source: https://github.com/Microsoft/vcpkg/blob/7676b8780db1e1e591c4fc7eba4f96f73c428cb4/ports/curl/0002_fix_uwp.patch
Diffstat (limited to 'lib/smb.c')
-rw-r--r--lib/smb.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/smb.c b/lib/smb.c
index 4c4538230..acf31bc56 100644
--- a/lib/smb.c
+++ b/lib/smb.c
@@ -6,7 +6,7 @@
* \___|\___/|_| \_\_____|
*
* Copyright (C) 2014, Bill Nagel <wnagel@tycoint.com>, Exacq Technologies
- * Copyright (C) 2016, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 2016-2017, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -32,8 +32,12 @@
#ifdef HAVE_PROCESS_H
#include <process.h>
+#ifdef CURL_WINDOWS_APP
+#define getpid GetCurrentProcessId
+#else
#define getpid _getpid
#endif
+#endif
#include "smb.h"
#include "urldata.h"