]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(xgetgroups): Guard function defn with #if HAVE_GETGROUPS.
authorJim Meyering <jim@meyering.net>
Tue, 3 Feb 1998 08:27:48 +0000 (08:27 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 3 Feb 1998 08:27:48 +0000 (08:27 +0000)
src/id.c

index 0b95910b88527863c171cb083341fa11f7ebe778..6c6675fa0dc1e877a49ce5c493aa6d60e7fb8fea 100644 (file)
--- a/src/id.c
+++ b/src/id.c
@@ -1,5 +1,5 @@
 /* id -- print real and effective UIDs and GIDs
-   Copyright (C) 1989-1995, 1996, 1997 Free Software Foundation, Inc.
+   Copyright (C) 1989-1995, 1996, 1997, 1998 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
@@ -215,6 +215,8 @@ print_group (int gid)
     printf ("%s", grp->gr_name);
 }
 
+#if HAVE_GETGROUPS
+
 static int
 xgetgroups (const char *username, int *n_groups, GETGROUPS_T **groups)
 {
@@ -249,6 +251,8 @@ xgetgroups (const char *username, int *n_groups, GETGROUPS_T **groups)
   return fail;
 }
 
+#endif /* HAVE_GETGROUPS */
+
 /* Print all of the distinct groups the user is in. */
 
 static void