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

Differential Revision: http://reviews.llvm.org/D9458

llvm-svn: 236580
This commit is contained in:
Viktor Kutuzov 2015-05-06 09:26:35 +00:00
parent d04e0d7292
commit a26d2d4d5e

View File

@ -2,6 +2,7 @@
#include <sys/types.h>
#include <grp.h>
#include <unistd.h> // FreeBSD declares initgroups() here.
int main(void) {
initgroups("root", 0);