diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-26 10:35:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-09-26 10:35:55 +0000 |
commit | ee5dce336597c76d674b570ed2c85041d50b6339 (patch) | |
tree | cd7ea0e60aff3fa129899319446dd3cce7b3ae39 /libpwdgrp | |
parent | f1980f67d3b005090a31b7465d219e8ca19c5736 (diff) | |
download | busybox-w32-ee5dce336597c76d674b570ed2c85041d50b6339.tar.gz busybox-w32-ee5dce336597c76d674b570ed2c85041d50b6339.tar.bz2 busybox-w32-ee5dce336597c76d674b570ed2c85041d50b6339.zip |
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).
Diffstat (limited to 'libpwdgrp')
-rw-r--r-- | libpwdgrp/pwd_grp.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libpwdgrp/pwd_grp.c b/libpwdgrp/pwd_grp.c index 98b8367ca..223cbde36 100644 --- a/libpwdgrp/pwd_grp.c +++ b/libpwdgrp/pwd_grp.c | |||
@@ -396,6 +396,7 @@ struct spwd *getspnam(const char *name) | |||
396 | } | 396 | } |
397 | #endif | 397 | #endif |
398 | 398 | ||
399 | #ifdef THIS_ONE_IS_UNUSED | ||
399 | /* This one doesn't use static buffers */ | 400 | /* This one doesn't use static buffers */ |
400 | int getpw(uid_t uid, char *buf) | 401 | int getpw(uid_t uid, char *buf) |
401 | { | 402 | { |
@@ -419,6 +420,7 @@ int getpw(uid_t uid, char *buf) | |||
419 | 420 | ||
420 | return -1; | 421 | return -1; |
421 | } | 422 | } |
423 | #endif | ||
422 | 424 | ||
423 | /**********************************************************************/ | 425 | /**********************************************************************/ |
424 | 426 | ||