From: Denis Vlasenko Date: Thu, 25 Sep 2008 10:20:46 +0000 (-0000) Subject: return setgroups() decl to libbb, it is needed if we use libpwdgrp. X-Git-Tag: 1_13_0~172 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=cac0f5b7e552adee46b8e35ae66b6465f4903c37;p=oweals%2Fbusybox.git return setgroups() decl to libbb, it is needed if we use libpwdgrp. --- diff --git a/include/libbb.h b/include/libbb.h index 815a3f3d2..3b4715e33 100644 --- a/include/libbb.h +++ b/include/libbb.h @@ -80,8 +80,10 @@ #endif /* Some libc's forget to declare these, do it ourself */ -extern char **environ; +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 @@ -107,7 +109,7 @@ struct sysinfo { unsigned long totalhigh; /* Total high memory size */ unsigned long freehigh; /* Available high memory size */ unsigned int mem_unit; /* Memory unit size in bytes */ - char _f[20 - 2*sizeof(long) - sizeof(int)]; /* Padding: libc5 uses this.. */ + char _f[20 - 2 * sizeof(long) - sizeof(int)]; /* Padding: libc5 uses this.. */ }; int sysinfo(struct sysinfo* info);