From: Teemu Toivola Date: Sat, 6 Sep 2014 19:28:58 +0000 (+0300) Subject: fix getgroup() test in Debian GNU/kFreeBSD (patch by Felix Geyer) X-Git-Tag: v1.13~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3a180ba89dba9fd5c45ed43b04cbde5e6765853a;p=vnstat fix getgroup() test in Debian GNU/kFreeBSD (patch by Felix Geyer) --- diff --git a/CHANGES b/CHANGES index b634745..c1edd11 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,8 @@ +1.13 / + + - Fix: getgroup() test in Debian GNU/kFreeBSD (patch by Felix Geyer) + + 1.12 / 30-Aug-14 - Fix: Memory allocation when zero interfaces are available, also lo needed diff --git a/tests/daemon_tests.c b/tests/daemon_tests.c index 4f06c8e..8e0b377 100644 --- a/tests/daemon_tests.c +++ b/tests/daemon_tests.c @@ -34,7 +34,7 @@ END_TEST START_TEST(getgroup_root_string) { -#if defined(__linux__) +#if defined(__linux__) || defined(__GNU__) || defined(__GLIBC__) ck_assert_int_eq((int)getgroup("root"), 0); #else ck_assert_int_eq((int)getgroup("wheel"), 0);