Add errno.h
[oweals/busybox.git] / applets.h
index 254924a7a75bb5b5f674d5d0540895f0a561986a..80ff1feb3a0eb89502e41d0508df09b7de79b4d7 100644 (file)
--- a/applets.h
+++ b/applets.h
  * file result in the listing remaining in ascii order. You have been warned.
  */
 
-#ifndef PROTOTYPES
-const struct BB_applet applets[] = {
-#define APPLET(a,b,c,d) {a,b,c,d},
-#define APPLET_NOUSAGE(a,b,c) {a,b,c,NULL},
-#else
+#if defined(PROTOTYPES)
 #define APPLET(a,b,c,d) \
        extern int b(int argc, char **argv); \
        extern const char d[];
 #define APPLET_NOUSAGE(a,b,c) \
        extern int b(int argc, char **argv);
+#elif defined(MAKE_LINKS)
+#define APPLET(a,b,c,d) LINK c a
+#define APPLET_NOUSAGE(a,b,c) LINK c a
+#else
+const struct BB_applet applets[] = {
+#define APPLET(a,b,c,d) {a,b,c,d},
+#define APPLET_NOUSAGE(a,b,c) {a,b,c,NULL},
 #endif
 
 #ifdef BB_TEST
@@ -86,6 +89,9 @@ const struct BB_applet applets[] = {
 #ifdef BB_DOS2UNIX
        APPLET("dos2unix", dos2unix_main, _BB_DIR_USR_BIN, dos2unix_usage)
 #endif
+#ifdef BB_DPKG_DEB
+       APPLET("dpkg-deb", dpkg_deb_main, _BB_DIR_USR_BIN, dpkg_deb_usage)
+#endif
 #ifdef BB_DU
        APPLET("du", du_main, _BB_DIR_USR_BIN, du_usage)
 #endif
@@ -356,6 +362,9 @@ const struct BB_applet applets[] = {
 #ifdef BB_UUENCODE
        APPLET("uuencode", uuencode_main, _BB_DIR_USR_BIN, uuencode_usage)
 #endif
+#ifdef BB_WATCHDOG
+       APPLET("watchdog", watchdog_main, _BB_DIR_SBIN, watchdog_usage)
+#endif
 #ifdef BB_WC
        APPLET("wc", wc_main, _BB_DIR_USR_BIN, wc_usage)
 #endif
@@ -378,7 +387,7 @@ const struct BB_applet applets[] = {
        APPLET("zcat", gunzip_main, _BB_DIR_BIN, gunzip_usage)
 #endif
 
-#ifndef PROTOTYPES
+#if !defined(PROTOTYPES) && !defined(MAKE_LINKS)
        { 0,NULL,0,NULL}
 };