[compiler-rt] r227100 - [Msan] Fix the statfs unit test to pass on FreeBSD
Viktor Kutuzov
vkutuzov at accesssoftek.com
Mon Jan 26 09:31:23 PST 2015
Author: vkutuzov
Date: Mon Jan 26 11:31:23 2015
New Revision: 227100
URL: http://llvm.org/viewvc/llvm-project?rev=227100&view=rev
Log:
[Msan] Fix the statfs unit test to pass on FreeBSD
Differential Revision: http://reviews.llvm.org/D7144
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=227100&r1=227099&r2=227100&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Mon Jan 26 11:31:23 2015
@@ -61,6 +61,8 @@
#else
# include <netinet/in.h>
# include <sys/uio.h>
+# include <sys/mount.h>
+# define f_namelen f_namemax // FreeBSD names this statfs field so.
#endif
#if defined(__i386__) || defined(__x86_64__)
More information about the llvm-commits
mailing list