X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Fgetgroups.c;h=1e9cbc6495166a394fbd8a9157a77ebd5d8fde8a;hb=bd606be378ddd8404641cad023dd43f1f676b26e;hp=a8a225a8f7f20a07c1ec384d0ab602215a111641;hpb=36b4b80587f78561ee7ba9f0198d0da6ce24f998;p=gnulib.git diff --git a/lib/getgroups.c b/lib/getgroups.c index a8a225a8f..1e9cbc649 100644 --- a/lib/getgroups.c +++ b/lib/getgroups.c @@ -1,6 +1,7 @@ /* provide consistent interface to getgroups for systems that don't allow N==0 - Copyright (C) 1996, 1999, 2003, 2006, 2007 Free Software Foundation, Inc. + Copyright (C) 1996, 1999, 2003, 2006, 2007, 2008 Free Software + Foundation, Inc. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -19,10 +20,13 @@ #include +#undef getgroups + #include #include #include #include +#include #include "xalloc.h" @@ -38,8 +42,6 @@ rpl_getgroups (int n, GETGROUPS_T *group) GETGROUPS_T *gbuf; int saved_errno; -#undef getgroups - if (n != 0) return getgroups (n, group);