summaryrefslogtreecommitdiff
path: root/libc/pwd_grp
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-03-23 11:17:41 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-03-23 11:17:41 +0000
commit64b8d39133a0c72de6e87f9436f07e089591a826 (patch)
tree74f7490630b33ca21ccf7f1be0d7982c2cd59f45 /libc/pwd_grp
parentd5f635529a4dfe62b5ef565135b6f506040a66b0 (diff)
Mark some functions as BSD only
Diffstat (limited to 'libc/pwd_grp')
-rw-r--r--libc/pwd_grp/pwd_grp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libc/pwd_grp/pwd_grp.c b/libc/pwd_grp/pwd_grp.c
index 1b341f3fd..551ded762 100644
--- a/libc/pwd_grp/pwd_grp.c
+++ b/libc/pwd_grp/pwd_grp.c
@@ -42,7 +42,6 @@ libc_hidden_proto(strchr)
libc_hidden_proto(strcmp)
libc_hidden_proto(strcpy)
libc_hidden_proto(strlen)
-libc_hidden_proto(setgroups)
libc_hidden_proto(strtoul)
libc_hidden_proto(rewind)
libc_hidden_proto(fgets_unlocked)
@@ -702,6 +701,10 @@ struct spwd *sgetspent(const char *string)
/**********************************************************************/
#ifdef L_initgroups
+#ifdef __USE_BSD
+
+libc_hidden_proto(setgroups)
+
int initgroups(const char *user, gid_t gid)
{
FILE *grfile;
@@ -755,6 +758,7 @@ int initgroups(const char *user, gid_t gid)
free(group_list);
return rv;
}
+#endif
#endif
/**********************************************************************/