summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2018-04-09 22:38:26 +0000
committerVitaly Buka <vitalybuka@google.com>2018-04-09 22:38:26 +0000
commit9802089e13aad3c00d549510a4a85c74f92e13b1 (patch)
treecf5a8b9e8d5e831eeffa5b7c1c5a1dc79d91f024 /compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
parent2a1ba94f245fec30aef438cdb3e7c24a4fc9f348 (diff)
downloadbcm5719-llvm-9802089e13aad3c00d549510a4a85c74f92e13b1.tar.gz
bcm5719-llvm-9802089e13aad3c00d549510a4a85c74f92e13b1.zip
libFuzzer, OpenBSD support
Summary: - Enabling libfuzzer on OpenBSD - OpenBSD can t support asan, msan ... the tests can t be run. Patch by David CARLIER Reviewers: eugenis, phosek, vitalybuka Reviewed By: vitalybuka Subscribers: srhines, mgorny, krytarowski, llvm-commits, #sanitizers Differential Revision: https://reviews.llvm.org/D44877 llvm-svn: 329631
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp b/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
index f8b5d11c534..c103fd230b0 100644
--- a/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerUtilLinux.cpp
@@ -9,7 +9,8 @@
// Misc utils for Linux.
//===----------------------------------------------------------------------===//
#include "FuzzerDefs.h"
-#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FREEBSD
+#if LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FREEBSD || \
+ LIBFUZZER_OPENBSD
#include "FuzzerCommand.h"
#include <stdlib.h>
@@ -23,4 +24,4 @@ int ExecuteCommand(const Command &Cmd) {
} // namespace fuzzer
-#endif // LIBFUZZER_LINUX || LIBFUZZER_NETBSD || LIBFUZZER_FREEBSD
+#endif
OpenPOWER on IntegriCloud