[PATCH] D41015: Fix test/msan/ifaddrs.cc for NetBSD
Kamil Rytarowski via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 8 08:55:20 PST 2017
krytarowski created this revision.
krytarowski added a project: Sanitizers.
NetBSD requires to include <sys/socket.h> for struct sockaddr.
Sponsored by <The NetBSD Foundation>
Repository:
rL LLVM
https://reviews.llvm.org/D41015
Files:
test/msan/ifaddrs.cc
Index: test/msan/ifaddrs.cc
===================================================================
--- test/msan/ifaddrs.cc
+++ test/msan/ifaddrs.cc
@@ -10,7 +10,7 @@
#include <vector>
-#if defined(__FreeBSD__)
+#if defined(__FreeBSD__) || defined(__NetBSD__)
#include <sys/socket.h> // To define 'struct sockaddr'.
#endif
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41015.126162.patch
Type: text/x-patch
Size: 330 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171208/180b857d/attachment.bin>
More information about the llvm-commits
mailing list