diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/appletlib.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/libbb/appletlib.c b/libbb/appletlib.c index b31532a93..2d52c3db9 100644 --- a/libbb/appletlib.c +++ b/libbb/appletlib.c | |||
@@ -26,11 +26,16 @@ | |||
26 | * | 26 | * |
27 | * FEATURE_INSTALLER or FEATURE_SUID will still link printf routines in. :( | 27 | * FEATURE_INSTALLER or FEATURE_SUID will still link printf routines in. :( |
28 | */ | 28 | */ |
29 | |||
30 | #include "busybox.h" | 29 | #include "busybox.h" |
31 | #include <assert.h> | 30 | #include <assert.h> |
32 | #include <malloc.h> | 31 | #include <malloc.h> |
33 | #include <sys/user.h> /* PAGE_SIZE */ | 32 | /* Try to pull in PAGE_SIZE */ |
33 | #ifdef __linux__ | ||
34 | # include <sys/user.h> | ||
35 | #endif | ||
36 | #ifdef __GNU__ /* Hurd */ | ||
37 | # include <mach/vm_param.h> | ||
38 | #endif | ||
34 | 39 | ||
35 | 40 | ||
36 | /* Declare <applet>_main() */ | 41 | /* Declare <applet>_main() */ |
@@ -41,13 +46,13 @@ | |||
41 | #if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE | 46 | #if ENABLE_SHOW_USAGE && !ENABLE_FEATURE_COMPRESS_USAGE |
42 | /* Define usage_messages[] */ | 47 | /* Define usage_messages[] */ |
43 | static const char usage_messages[] ALIGN1 = "" | 48 | static const char usage_messages[] ALIGN1 = "" |
44 | #define MAKE_USAGE | 49 | # define MAKE_USAGE |
45 | #include "usage.h" | 50 | # include "usage.h" |
46 | #include "applets.h" | 51 | # include "applets.h" |
47 | ; | 52 | ; |
48 | #undef MAKE_USAGE | 53 | # undef MAKE_USAGE |
49 | #else | 54 | #else |
50 | #define usage_messages 0 | 55 | # define usage_messages 0 |
51 | #endif /* SHOW_USAGE */ | 56 | #endif /* SHOW_USAGE */ |
52 | 57 | ||
53 | 58 | ||