Magellan Linux

Contents of /trunk/hwinfo/patches/hwinfo-18.5-tiocgdev-undefined.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1478 - (show annotations) (download)
Wed Aug 3 16:31:31 2011 UTC (12 years, 9 months ago) by niro
File size: 639 byte(s)
-re-added debian tiocgdev patch
1 diff -Naur hwinfo-16.10/src/hd/kbd.c hwinfo-16.10-magellan/src/hd/kbd.c
2 --- hwinfo-16.10/src/hd/kbd.c 2009-09-29 11:54:19.000000000 +0200
3 +++ hwinfo-16.10-magellan/src/hd/kbd.c 2009-10-29 01:52:23.000000000 +0100
4 @@ -142,11 +121,13 @@
5 }
6
7 if(!dev && (fd = open(DEV_CONSOLE, O_RDWR | O_NONBLOCK | O_NOCTTY)) >= 0) {
8 + /* Removing since TIOCGDEV isn't supported in the mainline kernel
9 if(ioctl(fd, TIOCGDEV, &u) != -1) {
10 tty_major = (u >> 8) & 0xfff;
11 tty_minor = (u & 0xff) | ((u >> 12) & 0xfff00);
12 ADD2LOG(DEV_CONSOLE ": major %u, minor %u\n", tty_major, tty_minor);
13 }
14 + */
15
16 if (0)
17 ;
18