1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 18:57:35 +00:00

Ports: Remove obsolete /dev/tty patches

This commit is contained in:
Daniel Bertalan 2021-12-22 22:49:43 +01:00 committed by Ali Mohammad Pur
parent 39b5bb4162
commit 55a42906a7
3 changed files with 0 additions and 33 deletions

View file

@ -1,10 +0,0 @@
+++ emu2-master/src/keyb.c 2021-04-14 09:28:52.597237515 -0700
@@ -385,7 +385,7 @@
{
if(tty_fd < 0)
{
- tty_fd = open("/dev/tty", O_NOCTTY | O_RDONLY);
+ tty_fd = open(ttyname(0), O_NOCTTY | O_RDONLY);
if(tty_fd < 0)
{
print_error("error at open TTY, %s\n", strerror(errno));

View file

@ -1,10 +0,0 @@
+++ emu2-master/src/video.c 2021-04-14 09:29:03.273155128 -0700
@@ -154,7 +154,7 @@
static void init_video(void)
{
debug(debug_video, "starting video emulation.\n");
- int tty_fd = open("/dev/tty", O_NOCTTY | O_WRONLY);
+ int tty_fd = open(ttyname(0), O_NOCTTY | O_WRONLY);
if(tty_fd < 0)
{
print_error("error at open TTY, %s\n", strerror(errno));