From 47588743c6833c9be921bdcbb523bbabc4fe21d0 Mon Sep 17 00:00:00 2001 From: hao Date: Thu, 7 Nov 2024 01:08:21 -0500 Subject: [PATCH] Update Gids.cc to make it work with BSD family BSD requires sys/param.h. Instead of including param.h and checking for BSD, we can just include the unistd.h --- src/Gids.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Gids.cc b/src/Gids.cc index 43646fe..b9b6da1 100644 --- a/src/Gids.cc +++ b/src/Gids.cc @@ -6,11 +6,7 @@ #if !defined(_WIN32) #include #include - -// BSD needs unistd.h for getgrouplist function -#if defined(BSD) || defined(__APPLE__) #include -#endif #else // Mocks for Windows