diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2015-01-03 13:58:15 +0100 |
commit | 4aca87515a5083ae0e31ce3177189fd43b6d05ac (patch) | |
tree | 7b1d9a31393ca090757dc6f0d3859b4fcd93f271 /release/src/router/busybox/applets/usage.c | |
parent | 008d0be72b2f160382c6e880765e96b64a050c65 (diff) | |
download | tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.gz tomato-4aca87515a5083ae0e31ce3177189fd43b6d05ac.tar.bz2 |
patch to Vanilla Tomato 1.28
Diffstat (limited to 'release/src/router/busybox/applets/usage.c')
-rw-r--r-- | release/src/router/busybox/applets/usage.c | 32 |
1 files changed, 28 insertions, 4 deletions
diff --git a/release/src/router/busybox/applets/usage.c b/release/src/router/busybox/applets/usage.c index dfea1f96..1e038b36 100644 --- a/release/src/router/busybox/applets/usage.c +++ b/release/src/router/busybox/applets/usage.c @@ -1,10 +1,34 @@ -#include "busybox.h" +/* vi: set sw=4 ts=4: */ +/* + * Copyright (C) 2008 Denys Vlasenko. + * + * Licensed under GPLv2, see file LICENSE in this tarball for details. + */ +#include <unistd.h> -const char usage_messages[] = +/* Just #include "autoconf.h" doesn't work for builds in separate + * object directory */ +#include "../include/autoconf.h" +/* Since we can't use platform.h, have to do this again by hand: */ +#if ENABLE_NOMMU +#define BB_MMU 0 +#define USE_FOR_NOMMU(...) __VA_ARGS__ +#define USE_FOR_MMU(...) +#else +#define BB_MMU 1 +#define USE_FOR_NOMMU(...) +#define USE_FOR_MMU(...) __VA_ARGS__ +#endif + +static const char usage_messages[] = "" #define MAKE_USAGE #include "usage.h" - #include "applets.h" - ; + +int main(void) +{ + write(STDOUT_FILENO, usage_messages, sizeof(usage_messages)); + return 0; +} |