mirror of https://github.com/mirror/busybox.git
platform.h: define endgrent() and endpwent() as no-ops on Android
Surprisingly, bionic libc seems to lack these functions. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_20_stable
parent
ba65872950
commit
6b64a26976
|
@ -29,7 +29,7 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
* We will use libc-defined structures, but will #define function names
|
* We will use libc-defined structures, but will #define function names
|
||||||
* so that function calls are directed to bb_internal_XXX replacements
|
* so that function calls are directed to bb_internal_XXX replacements
|
||||||
*/
|
*/
|
||||||
|
#undef endgrent
|
||||||
#define setgrent bb_internal_setgrent
|
#define setgrent bb_internal_setgrent
|
||||||
#define endgrent bb_internal_endgrent
|
#define endgrent bb_internal_endgrent
|
||||||
#define getgrent bb_internal_getgrent
|
#define getgrent bb_internal_getgrent
|
||||||
|
|
|
@ -334,6 +334,11 @@ typedef unsigned smalluint;
|
||||||
# define MAXSYMLINKS SYMLOOP_MAX
|
# define MAXSYMLINKS SYMLOOP_MAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if defined(ANDROID) || defined(__ANDROID__)
|
||||||
|
# define endpwent() ((void)0)
|
||||||
|
# define endgrent() ((void)0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* ---- Who misses what? ------------------------------------ */
|
/* ---- Who misses what? ------------------------------------ */
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ PUSH_AND_SET_FUNCTION_VISIBILITY_TO_HIDDEN
|
||||||
* We will use libc-defined structures, but will #define function names
|
* We will use libc-defined structures, but will #define function names
|
||||||
* so that function calls are directed to bb_internal_XXX replacements
|
* so that function calls are directed to bb_internal_XXX replacements
|
||||||
*/
|
*/
|
||||||
|
#undef endpwent
|
||||||
#define setpwent bb_internal_setpwent
|
#define setpwent bb_internal_setpwent
|
||||||
#define endpwent bb_internal_endpwent
|
#define endpwent bb_internal_endpwent
|
||||||
#define getpwent bb_internal_getpwent
|
#define getpwent bb_internal_getpwent
|
||||||
|
|
Loading…
Reference in New Issue