mirror of
https://github.com/curl/curl.git
synced 2026-08-25 22:23:53 +03:00
smb: use getpid replacement for windows UWP builds
Source: 7676b8780d/ports/curl/0002_fix_uwp.patch
This commit is contained in:
parent
73ef4ed612
commit
de1c1a8d85
1 changed files with 5 additions and 1 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
* \___|\___/|_| \_\_____|
|
* \___|\___/|_| \_\_____|
|
||||||
*
|
*
|
||||||
* Copyright (C) 2014, Bill Nagel <wnagel@tycoint.com>, Exacq Technologies
|
* 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
|
* This software is licensed as described in the file COPYING, which
|
||||||
* you should have received as part of this distribution. The terms
|
* you should have received as part of this distribution. The terms
|
||||||
|
|
@ -32,8 +32,12 @@
|
||||||
|
|
||||||
#ifdef HAVE_PROCESS_H
|
#ifdef HAVE_PROCESS_H
|
||||||
#include <process.h>
|
#include <process.h>
|
||||||
|
#ifdef CURL_WINDOWS_APP
|
||||||
|
#define getpid GetCurrentProcessId
|
||||||
|
#else
|
||||||
#define getpid _getpid
|
#define getpid _getpid
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "smb.h"
|
#include "smb.h"
|
||||||
#include "urldata.h"
|
#include "urldata.h"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue