From af6cca50afbf8b6c6cbdbc898eeacb8e23d13a34 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 25 May 2008 04:31:54 +0000 Subject: [PATCH] move setgroups definition to libbb.h so that it no longer inadvertently get hidden attribute --- include/grp_.h | 5 ----- include/libbb.h | 4 +++- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/include/grp_.h b/include/grp_.h index 45ee22ba9..23c4dcc03 100644 --- a/include/grp_.h +++ b/include/grp_.h @@ -36,11 +36,6 @@ struct group { char **gr_mem; /* Member list. */ }; -/* We don't reimplement this, just supplying prototype */ -/* The function itself is in libc */ -/* Set the group set for the current user to GROUPS (N of them). */ -extern int setgroups(size_t __n, __const gid_t *__groups); - #define setgrent bb_internal_setgrent #define endgrent bb_internal_endgrent diff --git a/include/libbb.h b/include/libbb.h index f50ae3604..0d6e3af7d 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -79,9 +79,11 @@ # endif #endif -/* Some libc's forget to declare these, help them */ +/* Some libc's forget to declare these, do it ourself */ extern char **environ; +/* Set the group set for the current user to GROUPS (N of them). */ +int setgroups(size_t n, const gid_t *groups); #if defined(__GLIBC__) && __GLIBC__ < 2 int vdprintf(int d, const char *format, va_list ap); #endif -- 2.25.1