Index: compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h =================================================================== --- compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h +++ compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h @@ -498,7 +498,8 @@ #define SANITIZER_INTERCEPT_GID_FROM_GROUP SI_NETBSD #define SANITIZER_INTERCEPT_ACCESS (SI_NETBSD || SI_FREEBSD) #define SANITIZER_INTERCEPT_FACCESSAT (SI_NETBSD || SI_FREEBSD) -#define SANITIZER_INTERCEPT_GETGROUPLIST SI_NETBSD +#define SANITIZER_INTERCEPT_GETGROUPLIST \ + (SI_NETBSD || SI_FREEBSD || SI_LINUX) #define SANITIZER_INTERCEPT_STRLCPY \ (SI_NETBSD || SI_FREEBSD || SI_MAC || SI_ANDROID) Index: compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp =================================================================== --- compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp +++ compiler-rt/test/sanitizer_common/TestCases/Linux/getgrouplist.cpp @@ -1,4 +1,6 @@ // RUN: %clangxx -O0 -g %s -o %t && %run %t +// +// REQUIRES: linux, freebsd, netbsd #include #include