summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerDriver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerDriver.cpp')
-rw-r--r--llvm/lib/Fuzzer/FuzzerDriver.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerDriver.cpp b/llvm/lib/Fuzzer/FuzzerDriver.cpp
index ab1fdf76ebf..d432fe84370 100644
--- a/llvm/lib/Fuzzer/FuzzerDriver.cpp
+++ b/llvm/lib/Fuzzer/FuzzerDriver.cpp
@@ -23,7 +23,6 @@
#include <mutex>
#include <string>
#include <thread>
-#include <unistd.h>
// This function should be present in the libFuzzer so that the client
// binary can test for its existence.
@@ -442,7 +441,7 @@ int FuzzerDriver(int *argc, char ***argv, UserCallback Callback) {
// Initialize Seed.
if (Seed == 0)
Seed = (std::chrono::system_clock::now().time_since_epoch().count() << 10) +
- getpid();
+ GetPid();
if (Flags.verbosity)
Printf("INFO: Seed: %u\n", Seed);
OpenPOWER on IntegriCloud