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, 2 insertions, 1 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerDriver.cpp b/llvm/lib/Fuzzer/FuzzerDriver.cpp
index d432fe84370..ab1fdf76ebf 100644
--- a/llvm/lib/Fuzzer/FuzzerDriver.cpp
+++ b/llvm/lib/Fuzzer/FuzzerDriver.cpp
@@ -23,6 +23,7 @@
#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.
@@ -441,7 +442,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