mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Add host-specific include for getpid() in FrontendTool.
This commit is contained in:
@@ -79,6 +79,11 @@
|
||||
#include "llvm/Support/Path.h"
|
||||
#include "llvm/Support/raw_ostream.h"
|
||||
|
||||
#if __has_include(<unistd.h>)
|
||||
#include <unistd.h>
|
||||
#elif defined(_WIN32)
|
||||
#include <process.h>
|
||||
#endif
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <unordered_set>
|
||||
|
||||
Reference in New Issue
Block a user