summaryrefslogtreecommitdiff
path: root/include/libbb.h
diff options
context:
space:
mode:
authorDenis Vlasenko2008-09-26 10:35:55 +0000
committerDenis Vlasenko2008-09-26 10:35:55 +0000
commitee5dce336597c76d674b570ed2c85041d50b6339 (patch)
treecd7ea0e60aff3fa129899319446dd3cce7b3ae39 /include/libbb.h
parentf1980f67d3b005090a31b7465d219e8ca19c5736 (diff)
downloadbusybox-ee5dce336597c76d674b570ed2c85041d50b6339.zip
busybox-ee5dce336597c76d674b570ed2c85041d50b6339.tar.gz
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 'include/libbb.h')
-rw-r--r--include/libbb.h12
1 files changed, 3 insertions, 9 deletions
diff --git a/include/libbb.h b/include/libbb.h
index 951ff2f..5b92574 100644
--- a/include/libbb.h
+++ b/include/libbb.h
@@ -69,21 +69,15 @@
#include <dmalloc.h>
#endif
-#if !ENABLE_USE_BB_PWD_GRP
-# include <pwd.h>
-# include <grp.h>
-#endif
+#include <pwd.h>
+#include <grp.h>
#if ENABLE_FEATURE_SHADOWPASSWDS
-# if !ENABLE_USE_BB_SHADOW
-# include <shadow.h>
-# endif
+# include <shadow.h>
#endif
/* 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