[Msan] Fix the ether unit test to build on FreeBSD
authorViktor Kutuzov <vkutuzov@accesssoftek.com>
Mon, 16 Feb 2015 13:13:53 +0000 (13:13 +0000)
committerViktor Kutuzov <vkutuzov@accesssoftek.com>
Mon, 16 Feb 2015 13:13:53 +0000 (13:13 +0000)
Differential Revision: http://reviews.llvm.org/D7334

llvm-svn: 229383

compiler-rt/lib/msan/tests/msan_test.cc

index 1c5fc5f..30c6765 100644 (file)
@@ -76,6 +76,7 @@ int shmdt(const void *);
 # include <pthread_np.h>
 # include <sys/uio.h>
 # include <sys/mount.h>
+# include <net/ethernet.h>
 # define f_namelen f_namemax  // FreeBSD names this statfs field so.
 # define cpu_set_t cpuset_t
 #endif