aboutsummaryrefslogtreecommitdiff
path: root/libbb/appletlib.c
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2010-03-29 11:02:00 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2010-03-29 11:02:00 +0200
commit3d0e7794ebf73c0dd1485c0df406084c46c3da1f (patch)
treefbc9df67a308c1bdc84aeb7c41ea86dfcf1271c1 /libbb/appletlib.c
parentfcb84c8bd2bba23c1e43145775b831b42f674f7b (diff)
downloadbusybox-w32-3d0e7794ebf73c0dd1485c0df406084c46c3da1f.tar.gz
busybox-w32-3d0e7794ebf73c0dd1485c0df406084c46c3da1f.tar.bz2
busybox-w32-3d0e7794ebf73c0dd1485c0df406084c46c3da1f.zip
libbb: locate PAGE_SIZE on Hurd
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb/appletlib.c')
-rw-r--r--libbb/appletlib.c19
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[] */
43static const char usage_messages[] ALIGN1 = "" 48static 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