mirror of
https://github.com/sheumann/hush.git
synced 2024-10-27 07:28:31 +00:00
Move include <shadow.h> close to pwd.h and grp.h includes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
a76dd50ce1
commit
3e0c428c45
@ -53,6 +53,14 @@
|
|||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <pwd.h>
|
#include <pwd.h>
|
||||||
#include <grp.h>
|
#include <grp.h>
|
||||||
|
#if ENABLE_FEATURE_SHADOWPASSWDS
|
||||||
|
# if !ENABLE_USE_BB_SHADOW
|
||||||
|
/* If using busybox's shadow implementation, do not include the shadow.h
|
||||||
|
* header as the toolchain may not provide it at all.
|
||||||
|
*/
|
||||||
|
# include <shadow.h>
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
#if defined(ANDROID) || defined(__ANDROID__)
|
#if defined(ANDROID) || defined(__ANDROID__)
|
||||||
# define endpwent() ((void)0)
|
# define endpwent() ((void)0)
|
||||||
# define endgrent() ((void)0)
|
# define endgrent() ((void)0)
|
||||||
@ -86,14 +94,6 @@
|
|||||||
#ifdef DMALLOC
|
#ifdef DMALLOC
|
||||||
# include <dmalloc.h>
|
# include <dmalloc.h>
|
||||||
#endif
|
#endif
|
||||||
#if ENABLE_FEATURE_SHADOWPASSWDS
|
|
||||||
# if !ENABLE_USE_BB_SHADOW
|
|
||||||
/* If using busybox's shadow implementation, do not include the shadow.h
|
|
||||||
* header as the toolchain may not provide it at all.
|
|
||||||
*/
|
|
||||||
# include <shadow.h>
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
/* Just in case libc doesn't define some of these... */
|
/* Just in case libc doesn't define some of these... */
|
||||||
#ifndef _PATH_PASSWD
|
#ifndef _PATH_PASSWD
|
||||||
#define _PATH_PASSWD "/etc/passwd"
|
#define _PATH_PASSWD "/etc/passwd"
|
||||||
|
Loading…
Reference in New Issue
Block a user