aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2011-03-28 01:23:38 +0200
committerDenys Vlasenko <vda.linux@googlemail.com>2011-03-28 01:23:38 +0200
commit6ec1510f719ad7463d76eea9284428cc605d6b38 (patch)
treef692b2720d96ad1208682035a1cba498c803b998 /applets
parent4a2aecb53a193916a40594f7c40eab86fedd8f8e (diff)
downloadbusybox-6ec1510f719ad7463d76eea9284428cc605d6b38.tar.gz
applet_tables: do not include libbb.h, that header ir for target builds
...and applets/applet_tables.c is built on *host*. Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'applets')
-rw-r--r--applets/applet_tables.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/applets/applet_tables.c b/applets/applet_tables.c
index 32dcdb73d..3859d7326 100644
--- a/applets/applet_tables.c
+++ b/applets/applet_tables.c
@@ -7,13 +7,19 @@
*
* Licensed under GPLv2, see file LICENSE in this source tree.
*/
-
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <fcntl.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
+#include <unistd.h>
+
+#undef ARRAY_SIZE
+#define ARRAY_SIZE(x) ((unsigned)(sizeof(x) / sizeof((x)[0])))
#include "../include/autoconf.h"
-#include "../include/busybox.h"
+#include "../include/applet_metadata.h"
struct bb_applet {
const char *name;