]> granicus.if.org Git - curl/commitdiff
smb: use getpid replacement for windows UWP builds
authorDaniel Stenberg <daniel@haxx.se>
Mon, 20 Feb 2017 09:27:51 +0000 (10:27 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Feb 2017 09:27:51 +0000 (10:27 +0100)
Source: https://github.com/Microsoft/vcpkg/blob/7676b8780db1e1e591c4fc7eba4f96f73c428cb4/ports/curl/0002_fix_uwp.patch

lib/smb.c

index 4c45382305e4009e1a31db1c9d9e9e12fc497eb8..acf31bc563cc8567a69b64de2d8995e712ff3753 100644 (file)
--- 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
 
 #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"