mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
Merge from bittboy/buildroot@db180c0
This commit is contained in:
22
package/sdl/sdl-fix-kb-input.patch
Normal file
22
package/sdl/sdl-fix-kb-input.patch
Normal file
@@ -0,0 +1,22 @@
|
||||
diff --git a/src/video/fbcon/SDL_fbevents.c b/src/video/fbcon/SDL_fbevents.c
|
||||
index 5e369a4..549a7ad 100644
|
||||
--- a/src/video/fbcon/SDL_fbevents.c
|
||||
+++ b/src/video/fbcon/SDL_fbevents.c
|
||||
@@ -270,17 +270,6 @@ int FB_OpenKeyboard(_THIS)
|
||||
fprintf(stderr, "vtpath = %s, fd = %d\n",
|
||||
vtpath, keyboard_fd);
|
||||
#endif /* DEBUG_KEYBOARD */
|
||||
-
|
||||
- /* This needs to be our controlling tty
|
||||
- so that the kernel ioctl() calls work
|
||||
- */
|
||||
- if ( keyboard_fd >= 0 ) {
|
||||
- tty0_fd = open("/dev/tty", O_RDWR, 0);
|
||||
- if ( tty0_fd >= 0 ) {
|
||||
- ioctl(tty0_fd, TIOCNOTTY, 0);
|
||||
- close(tty0_fd);
|
||||
- }
|
||||
- }
|
||||
}
|
||||
}
|
||||
if ( keyboard_fd < 0 ) {
|
Reference in New Issue
Block a user