diff options
author | Zachary Turner <zturner@google.com> | 2016-12-02 20:54:56 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2016-12-02 20:54:56 +0000 |
commit | 3cfeab7059bf5551c6a40ab3ed05273dfcb5eca4 (patch) | |
tree | e6a5dc4e066f7b5ebcaf300677968a2cc0cb43de /llvm/lib/Fuzzer/FuzzerDriver.cpp | |
parent | f295cc8fb58690bf3e2975d85abbb7eed5b1efdd (diff) | |
download | bcm5719-llvm-3cfeab7059bf5551c6a40ab3ed05273dfcb5eca4.tar.gz bcm5719-llvm-3cfeab7059bf5551c6a40ab3ed05273dfcb5eca4.zip |
Revert "[LibFuzzer] Split FuzzerUtil for Posix and Windows."
This reverts commit r288529, as it seems to introduce some
problems on the Linux bots.
llvm-svn: 288533
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerDriver.cpp')
-rw-r--r-- | llvm/lib/Fuzzer/FuzzerDriver.cpp | 3 |
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); |