[llvm] r289965 - [libFuzzer] Remove unnecessary includes of posix headers.

Marcos Pividori via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 16 09:35:22 PST 2016


Author: mpividori
Date: Fri Dec 16 11:35:21 2016
New Revision: 289965

URL: http://llvm.org/viewvc/llvm-project?rev=289965&view=rev
Log:
[libFuzzer] Remove unnecessary includes of posix headers.

Remove includes of "unistd.h" header, which is missing in non posix
systems.

Differential Revision: https://reviews.llvm.org/D277300

Modified:
    llvm/trunk/lib/Fuzzer/test/OneHugeAllocTest.cpp
    llvm/trunk/lib/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp
    llvm/trunk/lib/Fuzzer/test/OutOfMemoryTest.cpp

Modified: llvm/trunk/lib/Fuzzer/test/OneHugeAllocTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/OneHugeAllocTest.cpp?rev=289965&r1=289964&r2=289965&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/OneHugeAllocTest.cpp (original)
+++ llvm/trunk/lib/Fuzzer/test/OneHugeAllocTest.cpp Fri Dec 16 11:35:21 2016
@@ -8,7 +8,6 @@
 #include <cstddef>
 #include <cstring>
 #include <iostream>
-#include <unistd.h>
 
 static volatile char *SinkPtr;
 

Modified: llvm/trunk/lib/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp?rev=289965&r1=289964&r2=289965&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp (original)
+++ llvm/trunk/lib/Fuzzer/test/OutOfMemorySingleLargeMallocTest.cpp Fri Dec 16 11:35:21 2016
@@ -8,7 +8,6 @@
 #include <cstddef>
 #include <cstring>
 #include <iostream>
-#include <unistd.h>
 
 static volatile char *SinkPtr;
 

Modified: llvm/trunk/lib/Fuzzer/test/OutOfMemoryTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/test/OutOfMemoryTest.cpp?rev=289965&r1=289964&r2=289965&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/test/OutOfMemoryTest.cpp (original)
+++ llvm/trunk/lib/Fuzzer/test/OutOfMemoryTest.cpp Fri Dec 16 11:35:21 2016
@@ -9,7 +9,6 @@
 #include <cstring>
 #include <iostream>
 #include <thread>
-#include <unistd.h>
 
 static volatile char *SinkPtr;
 




More information about the llvm-commits mailing list