| diff -urp coreutils-6.10-orig/lib/getugroups.c coreutils-6.10/lib/getugroups.c |
| |
| |
| @@ -19,6 +19,9 @@ |
| |
| #include <config.h> |
| |
| +/* We do not need this code if getgrouplist(3) is available. */ |
| +#ifndef HAVE_GETGROUPLIST |
| + |
| #include "getugroups.h" |
| |
| #include <limits.h> |
| @@ -114,3 +117,4 @@ getugroups (int maxcount, GETGROUPS_T *g |
| |
| return count; |
| } |
| +#endif /* have getgrouplist */ |
| diff -urp coreutils-6.10-orig/m4/jm-macros.m4 coreutils-6.10/m4/jm-macros.m4 |
| |
| |
| @@ -52,6 +52,7 @@ AC_DEFUN([coreutils_MACROS], |
| fchown \ |
| fchmod \ |
| ftruncate \ |
| + getgrouplist \ |
| iswspace \ |
| mkfifo \ |
| mbrlen \ |