File: 0002-TIOCGDEV-is-not-supported-by-the-kernel-therefore-we.patch

package info (click to toggle)
hwinfo 21.82-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, trixie
  • size: 9,240 kB
  • sloc: ansic: 45,188; perl: 3,325; makefile: 233; sh: 181
file content (28 lines) | stat: -rw-r--r-- 836 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From: Tomasz Buchert <tomasz@debian.org>
Date: Sat, 1 Feb 2014 14:26:41 +0100
Subject: TIOCGDEV is not supported by the kernel therefore we comment it out.

---
 src/hd/kbd.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/hd/kbd.c b/src/hd/kbd.c
index fa08817..38a75ee 100644
--- a/src/hd/kbd.c
+++ b/src/hd/kbd.c
@@ -134,6 +134,7 @@ void add_serial_console(hd_data_t *hd_data)
   }
 
   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);
@@ -152,6 +153,7 @@ void add_serial_console(hd_data_t *hd_data)
       free_mem(dev_link);
       free_mem(dev_name);
     }
+    */
 
     if (dev)
 	    ;