libpwdgrp: make it coexist with <pwd.h>, <grp.h> and <shadow.h>.

allows to get rid of hacks in libbb.h (extra declaration of setgroups -
 now it comes from grp.h as intended).
This commit is contained in:
Denis Vlasenko
2008-09-26 10:35:55 +00:00
parent f1980f67d3
commit ee5dce3365
6 changed files with 44 additions and 74 deletions

View File

@@ -396,6 +396,7 @@ struct spwd *getspnam(const char *name)
}
#endif
#ifdef THIS_ONE_IS_UNUSED
/* This one doesn't use static buffers */
int getpw(uid_t uid, char *buf)
{
@@ -419,6 +420,7 @@ int getpw(uid_t uid, char *buf)
return -1;
}
#endif
/**********************************************************************/