From 55a42906a71283dece67803e980ed97cdd9b5087 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Wed, 22 Dec 2021 22:49:43 +0100 Subject: Ports: Remove obsolete /dev/tty patches --- Ports/emu2/patches/keyb.patch | 10 ---------- Ports/emu2/patches/video.patch | 10 ---------- Ports/oksh/patches/disable_tty.patch | 13 ------------- 3 files changed, 33 deletions(-) delete mode 100644 Ports/emu2/patches/keyb.patch delete mode 100644 Ports/emu2/patches/video.patch delete mode 100644 Ports/oksh/patches/disable_tty.patch diff --git a/Ports/emu2/patches/keyb.patch b/Ports/emu2/patches/keyb.patch deleted file mode 100644 index 5ab794b2cf..0000000000 --- a/Ports/emu2/patches/keyb.patch +++ /dev/null @@ -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)); diff --git a/Ports/emu2/patches/video.patch b/Ports/emu2/patches/video.patch deleted file mode 100644 index 95bfe39852..0000000000 --- a/Ports/emu2/patches/video.patch +++ /dev/null @@ -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)); diff --git a/Ports/oksh/patches/disable_tty.patch b/Ports/oksh/patches/disable_tty.patch deleted file mode 100644 index 4838fe1e4e..0000000000 --- a/Ports/oksh/patches/disable_tty.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/tty.c b/tty.c -index a72e5cd..96fa904 100644 ---- a/tty.c -+++ b/tty.c -@@ -33,7 +33,7 @@ tty_init(int init_ttystate) - tty_close(); - tty_devtty = 1; - -- tfd = open("/dev/tty", O_RDWR, 0); -+ tfd = open("/dev/tty0", O_RDWR, 0); - if (tfd == -1) { - tty_devtty = 0; - warningf(false, "No controlling tty (open /dev/tty: %s)", -- cgit v1.2.3