ntpd: set offset to 0.0 in "usync" event
[oweals/busybox.git] / applets / applet_tables.c
index 32dcdb73dc4ffdf86f406874d49163b478c289fe..152d5f4418be27ccf316628e7a209bebe225a144 100644 (file)
@@ -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;
@@ -75,7 +81,7 @@ int main(int argc, char **argv)
        printf("#define NUM_APPLETS %u\n", NUM_APPLETS);
        if (NUM_APPLETS == 1) {
                printf("#define SINGLE_APPLET_STR \"%s\"\n", applets[0].name);
-               printf("#define SINGLE_APPLET_MAIN %s_main\n", applets[0].name);
+               printf("#define SINGLE_APPLET_MAIN %s_main\n", applets[0].main);
        }
        printf("\n");