Tito is using broken kernel headers that pollute the namespace with every
authorRob Landley <rob@landley.net>
Tue, 6 Dec 2005 22:48:29 +0000 (22:48 -0000)
committerRob Landley <rob@landley.net>
Tue, 6 Dec 2005 22:48:29 +0000 (22:48 -0000)
CONFIG_ symbol in the kernel, and this clashes with busybox's CONFIG_TR
and CONFIG_WATCHDOG, causing applets.h to barf if they're not switched
on (since the broken headers don't affect kconfig or the makefiles).

Since such broken kernel headers are common enough to crop up every few
months, a simple work around is to move TR and WATCHDOG from CONFIG_
to ENABLE_ early.

include/applets.h

index ec3a892d08c741eaccc26848f217e5aef15d90fa..79d18207e3b598387750f9e7581ea22b61e9b81c 100644 (file)
 #ifdef CONFIG_TOUCH
        APPLET(touch, touch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
 #endif
-#ifdef CONFIG_TR
+#if ENABLE_TR
        APPLET(tr, tr_main, _BB_DIR_USR_BIN, _BB_SUID_NEVER)
 #endif
 #ifdef CONFIG_TRACEROUTE
 #ifdef CONFIG_WATCH
        APPLET(watch, watch_main, _BB_DIR_BIN, _BB_SUID_NEVER)
 #endif
-#ifdef CONFIG_WATCHDOG
+#if ENABLE_WATCHDOG
        APPLET(watchdog, watchdog_main, _BB_DIR_SBIN, _BB_SUID_NEVER)
 #endif
 #ifdef CONFIG_WC