[llvm] r293389 - [libfuzzer] include errno.h. On Ubuntu 14.04 we got away w/o it, but other systems seem to require it

Kostya Serebryany via llvm-commits llvm-commits at lists.llvm.org
Sat Jan 28 10:56:05 PST 2017


Author: kcc
Date: Sat Jan 28 12:56:05 2017
New Revision: 293389

URL: http://llvm.org/viewvc/llvm-project?rev=293389&view=rev
Log:
[libfuzzer] include errno.h. On Ubuntu 14.04 we got away w/o it, but other systems seem to require it

Modified:
    llvm/trunk/lib/Fuzzer/FuzzerShmemPosix.cpp

Modified: llvm/trunk/lib/Fuzzer/FuzzerShmemPosix.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Fuzzer/FuzzerShmemPosix.cpp?rev=293389&r1=293388&r2=293389&view=diff
==============================================================================
--- llvm/trunk/lib/Fuzzer/FuzzerShmemPosix.cpp (original)
+++ llvm/trunk/lib/Fuzzer/FuzzerShmemPosix.cpp Sat Jan 28 12:56:05 2017
@@ -16,6 +16,7 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <errno.h>
 #include <fcntl.h>
 #include <sys/mman.h>
 #include <semaphore.h>




More information about the llvm-commits mailing list