[compiler-rt] r319412 - Linux needs to include sys/uio.h for readv, preadv
Stephan Bergmann via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 30 01:22:12 PST 2017
Author: sberg
Date: Thu Nov 30 01:22:12 2017
New Revision: 319412
URL: http://llvm.org/viewvc/llvm-project?rev=319412&view=rev
Log:
Linux needs to include sys/uio.h for readv, preadv
...at least when building against glibc-2.26-16.fc27.x86_64
Modified:
compiler-rt/trunk/lib/msan/tests/msan_test.cc
Modified: compiler-rt/trunk/lib/msan/tests/msan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/msan_test.cc?rev=319412&r1=319411&r2=319412&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Thu Nov 30 01:22:12 2017
@@ -71,6 +71,9 @@ int shmdt(const void *);
# include <sys/vfs.h>
# include <mntent.h>
# include <netinet/ether.h>
+# if defined(__linux__)
+# include <sys/uio.h>
+# endif
#else
# include <signal.h>
# include <netinet/in.h>
More information about the llvm-commits
mailing list