[PATCH] [Msan] Fix the initgroups.cc test to build on FreeBSD

Phabricator reviews at reviews.llvm.org
Wed May 6 02:30:11 PDT 2015


REPOSITORY
  rL LLVM

http://reviews.llvm.org/D9458

Files:
  compiler-rt/trunk/test/msan/initgroups.cc

Index: compiler-rt/trunk/test/msan/initgroups.cc
===================================================================
--- compiler-rt/trunk/test/msan/initgroups.cc
+++ compiler-rt/trunk/test/msan/initgroups.cc
@@ -2,6 +2,7 @@
 
 #include <sys/types.h>
 #include <grp.h>
+#include <unistd.h>  // FreeBSD declares initgroups() here.
 
 int main(void) {
   initgroups("root", 0);

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D9458.25022.patch
Type: text/x-patch
Size: 376 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150506/b2f88a67/attachment.bin>


More information about the llvm-commits mailing list