[compiler-rt] r236580 - [Msan] Fix the initgroups.cc test to build on FreeBSD
Viktor Kutuzov
vkutuzov at accesssoftek.com
Wed May 6 02:26:35 PDT 2015
Author: vkutuzov
Date: Wed May 6 04:26:35 2015
New Revision: 236580
URL: http://llvm.org/viewvc/llvm-project?rev=236580&view=rev
Log:
[Msan] Fix the initgroups.cc test to build on FreeBSD
Differential Revision: http://reviews.llvm.org/D9458
Modified:
compiler-rt/trunk/test/msan/initgroups.cc
Modified: compiler-rt/trunk/test/msan/initgroups.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/msan/initgroups.cc?rev=236580&r1=236579&r2=236580&view=diff
==============================================================================
--- compiler-rt/trunk/test/msan/initgroups.cc (original)
+++ compiler-rt/trunk/test/msan/initgroups.cc Wed May 6 04:26:35 2015
@@ -2,6 +2,7 @@
#include <sys/types.h>
#include <grp.h>
+#include <unistd.h> // FreeBSD declares initgroups() here.
int main(void) {
initgroups("root", 0);
More information about the llvm-commits
mailing list