summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerDriver.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-12-02 19:38:19 +0000
committerZachary Turner <zturner@google.com>2016-12-02 19:38:19 +0000
commit34dcfb9294a751f53a2172aa249ecd028836ee46 (patch)
tree8f3efa3e7edd1422955cd420dc049e16325cf080 /llvm/lib/Fuzzer/FuzzerDriver.cpp
parenta5b5745a6239df223d55bbf28e83ac5e65b78f56 (diff)
downloadbcm5719-llvm-34dcfb9294a751f53a2172aa249ecd028836ee46.tar.gz
bcm5719-llvm-34dcfb9294a751f53a2172aa249ecd028836ee46.zip
[LibFuzzer] Split FuzzerUtil for Posix and Windows.
Pave the way for separating out platform specific utility functions into separate files. Patch by Marcos Pividori Differential Revision: https://reviews.llvm.org/D27234 llvm-svn: 288529
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