diff options
author | Jim Meyering <jim@meyering.net> | 1998-02-03 08:27:48 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-02-03 08:27:48 +0000 |
commit | 46fb234f5febf51168d7670e08c3fbb1dc15be4f (patch) | |
tree | fcd0e261a1a0a760bfa470d2889c1afbe0910601 | |
parent | 1e985af9d7d50b67faa1e5b348e03a8d056be7d0 (diff) | |
download | coreutils-46fb234f5febf51168d7670e08c3fbb1dc15be4f.tar.xz |
(xgetgroups): Guard function defn with #if HAVE_GETGROUPS.
-rw-r--r-- | src/id.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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 |