Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create custom_ioctl.patch #15

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions packages/hwinfo/custom_ioctl.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
diff --git a/src/hd/kbd.c b/src/hd/kbd.c
index fa08817..184ac08 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 is not supported by 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)
;