[PATCH] [Msan] Fix the statfs unit test to pass on FreeBSD

Phabricator reviews at reviews.llvm.org
Mon Jan 26 09:33:03 PST 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D7144

Files:
  compiler-rt/trunk/lib/msan/tests/msan_test.cc

Index: compiler-rt/trunk/lib/msan/tests/msan_test.cc
===================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc
+++ compiler-rt/trunk/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__)

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D7144.18762.patch
Type: text/x-patch
Size: 446 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150126/76d381ad/attachment.bin>


More information about the llvm-commits mailing list