[BusyBox] setkeycodes won't compile in if chvt and deallocvt aren't in the configuration
Jon McClintock
jonm at bluemug.com
Wed Jul 5 23:07:40 UTC 2000
Hello,
If you disable chvt and deallocvt, but leave setkeycodes active, busybox
will not link (setkeycodes needs get_console_fd()). Here's a short patch
that fixes this, as well as gets rid of a trivial use-before-initialize
warning.
-Jon
-------------- next part --------------
--- busybox-0.45/utility.c Mon Jun 12 16:39:36 2000
+++ busybox-0.45-patched/utility.c Wed Jul 5 15:51:04 2000
@@ -892,7 +892,7 @@
#endif /* BB_CHMOD_CHOWN_CHGRP || BB_PS || BB_LS || BB_TAR || BB_ID */
-#if (defined BB_CHVT) || (defined BB_DEALLOCVT)
+#if (defined BB_CHVT) || (defined BB_DEALLOCVT) || (defined BB_SETKEYCODES)
#include <linux/kd.h>
@@ -977,7 +977,7 @@
}
-#endif /* BB_CHVT || BB_DEALLOCVT */
+#endif /* BB_CHVT || BB_DEALLOCVT || BB_SETKEYCODES */
#if !defined BB_REGEXP && (defined BB_GREP || defined BB_SED)
@@ -1318,7 +1318,7 @@
fatalError( "\nDEVPS_GET_PID_LIST: %s\n", strerror (errno));
/* Now search for a match */
- for (i=1; i<pid_array[0] ; i++) {
+ for (i=1, j=0; i<pid_array[0] ; i++) {
char* p;
struct pid_info info;
More information about the busybox
mailing list