(PATCH) latest-snapshot: ‘DEBUG’ undeclared

walter harms WHarms at bfs.de
Tue Mar 4 17:34:25 UTC 2008


libbb/getpty.c: In function ‘getpty’:
libbb/getpty.c:43: error: ‘DEBUG’ undeclared (first use in this function)
libbb/getpty.c:43: error: (Each undeclared identifier is reported only once
libbb/getpty.c:43: error: for each function it appears in.)
make[1]: *** [libbb/getpty.o] Fehler 1




--- libbb/getpty.c.org  2008-03-04 18:31:08.000000000 +0100
+++ libbb/getpty.c      2008-03-04 18:31:26.000000000 +0100
@@ -40,7 +40,7 @@
                }
                for (j = 0; j < 16; j++) {
                        line[9] = j < 10 ? j + '0' : j - 10 + 'a';
-                       if (DEBUG)
+                       if (CONFIG_DEBUG)
                                fprintf(stderr, "Trying to open device: %s\n", line);
                        p = open(line, O_RDWR | O_NOCTTY);
                        if (p >= 0) {



More information about the busybox mailing list