hwinfo/hwinfo-16.12-tiocgdev_undefined.patch

17 lines
541 B
Diff
Raw Permalink Normal View History

--- src/hd/kbd.c.undefined 2007-08-15 12:26:10.000000000 +0200
+++ src/hd/kbd.c 2009-04-09 11:41:23.000000000 +0200
@@ -142,11 +142,13 @@
}
if(!dev && (fd = open(DEV_CONSOLE, O_RDWR | O_NONBLOCK | O_NOCTTY)) >= 0) {
+ /* Removing since TIOCGDEV isn't supported in the mainline kernel
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);
}
+ */
if (0)
;