[PATCH] D27926: [libFuzzer] Diff 31 - Update includes.
Marcos Pividori via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 09:10:26 PST 2016
mpividori created this revision.
mpividori added reviewers: kcc, zturner.
mpividori added a subscriber: llvm-commits.
mpividori set the repository for this revision to rL LLVM.
Repository:
rL LLVM
https://reviews.llvm.org/D27926
Files:
lib/Fuzzer/afl/afl_driver.cpp
Index: lib/Fuzzer/afl/afl_driver.cpp
===================================================================
--- lib/Fuzzer/afl/afl_driver.cpp
+++ lib/Fuzzer/afl/afl_driver.cpp
@@ -75,10 +75,15 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include <errno.h>
#include <signal.h>
+#if LIBFUZZER_POSIX
+#include <unistd.h>
#include <sys/resource.h>
+#elif LIBFUZZER_WINDOWS
+#include <windows.h>
+#include <Psapi.h>
+#endif
// Used to avoid repeating error checking boilerplate. If cond is false, a
// fatal error has occured in the program. In this event print error_message
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D27926.81965.patch
Type: text/x-patch
Size: 618 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161219/2ddc4a10/attachment.bin>
More information about the llvm-commits
mailing list