From fcf1368b5ebbf70a0714e1f87dade87b08f64d60 Mon Sep 17 00:00:00 2001 From: weetmuts Date: Wed, 3 Apr 2019 19:13:59 +0200 Subject: [PATCH] Macosx fix. --- src/util.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util.cc b/src/util.cc index b76a5a5..c894109 100644 --- a/src/util.cc +++ b/src/util.cc @@ -733,7 +733,11 @@ AccessCheck checkIfExistsAndSameGroup(string device) // The file did not exist. if (ok) return AccessCheck::NotThere; - gid_t groups[256]; +#if defined(__APPLE__) && defined(__MACH__) + int groups[256]; +#else + gid_t groups[256]; +#endif int ngroups = 256; struct passwd *p = getpwuid(getuid());