summaryrefslogtreecommitdiff
path: root/lib/msan/tests
diff options
context:
space:
mode:
authorViktor Kutuzov <vkutuzov@accesssoftek.com>2015-01-26 17:31:23 +0000
committerViktor Kutuzov <vkutuzov@accesssoftek.com>2015-01-26 17:31:23 +0000
commit3ee9911b79a7c2d9d460d6aefcacf6103d5b4138 (patch)
tree780be45872895155f2f57e21ba3145587f558655 /lib/msan/tests
parent1bfe7428c95835edbf08cf3a961b01e7046335ed (diff)
[Msan] Fix the statfs unit test to pass on FreeBSD
Differential Revision: http://reviews.llvm.org/D7144 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@227100 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/tests')
-rw-r--r--lib/msan/tests/msan_test.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/msan/tests/msan_test.cc b/lib/msan/tests/msan_test.cc
index 57d2333bf..6bbf0630d 100644
--- a/lib/msan/tests/msan_test.cc
+++ b/lib/msan/tests/msan_test.cc
@@ -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__)