| 1 |
diff -urp coreutils-6.10-orig/lib/getugroups.c coreutils-6.10/lib/getugroups.c
|
| 2 |
--- coreutils-6.10-orig/lib/getugroups.c 2007-10-17 15:47:25.000000000 +0200
|
| 3 |
+++ coreutils-6.10/lib/getugroups.c 2008-01-24 16:37:04.000000000 +0100
|
| 4 |
@@ -19,6 +19,9 @@
|
| 5 |
|
| 6 |
#include <config.h>
|
| 7 |
|
| 8 |
+/* We do not need this code if getgrouplist(3) is available. */
|
| 9 |
+#ifndef HAVE_GETGROUPLIST
|
| 10 |
+
|
| 11 |
#include "getugroups.h"
|
| 12 |
|
| 13 |
#include <limits.h>
|
| 14 |
@@ -114,3 +117,4 @@ getugroups (int maxcount, GETGROUPS_T *g
|
| 15 |
|
| 16 |
return count;
|
| 17 |
}
|
| 18 |
+#endif /* have getgrouplist */
|
| 19 |
diff -urp coreutils-6.10-orig/m4/jm-macros.m4 coreutils-6.10/m4/jm-macros.m4
|
| 20 |
--- coreutils-6.10-orig/m4/jm-macros.m4 2007-11-25 14:23:31.000000000 +0100
|
| 21 |
+++ coreutils-6.10/m4/jm-macros.m4 2008-01-24 16:42:00.000000000 +0100
|
| 22 |
@@ -52,6 +52,7 @@ AC_DEFUN([coreutils_MACROS],
|
| 23 |
fchown \
|
| 24 |
fchmod \
|
| 25 |
ftruncate \
|
| 26 |
+ getgrouplist \
|
| 27 |
iswspace \
|
| 28 |
mkfifo \
|
| 29 |
mbrlen \
|