From 64b8d39133a0c72de6e87f9436f07e089591a826 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Thu, 23 Mar 2006 11:17:41 +0000 Subject: Mark some functions as BSD only --- libc/pwd_grp/pwd_grp.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'libc/pwd_grp/pwd_grp.c') 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 /**********************************************************************/ -- cgit v1.2.3