diff -urN hwinfo-14.19.orig/src/hd/kbd.c hwinfo-14.19/src/hd/kbd.c --- hwinfo-14.19.orig/src/hd/kbd.c 2007-08-15 13:26:10 +0300 +++ hwinfo-14.19/src/hd/kbd.c 2008-09-25 19:03:44 +0300 @@ -110,7 +110,10 @@ str_list_t *cmd, *cmd0, *sl; unsigned u, u1; struct serial_struct ser_info; +/* Removing since TIOCGDEV isn't supported in the mainline kernel */ +#ifdef __powerpc__ unsigned tty_major = 0, tty_minor = 0; +#endif char c, *dev = NULL, *s; /* first, try console= option */ @@ -142,11 +145,14 @@ } if(!dev && (fd = open(DEV_CONSOLE, O_RDWR | O_NONBLOCK | O_NOCTTY)) >= 0) { + /* Removing since TIOCGDEV isn't supported in the mainline kernel */ +#if 0 if(ioctl(fd, TIOCGDEV, &u) != -1) { tty_major = (u >> 8) & 0xfff; tty_minor = (u & 0xff) | ((u >> 12) & 0xfff00); ADD2LOG(DEV_CONSOLE ": major %u, minor %u\n", tty_major, tty_minor); } +#endif if (0) ;