From 04d965d67a7264a1c7c211494aebda1953df7603 Mon Sep 17 00:00:00 2001 From: "info@mode42.com" Date: Fri, 7 Aug 2026 18:25:13 +0000 Subject: Initial push --- .../ax25/patches/ax25-apps-0.0.8-termios.patch | 70 ++++++++++++++++++++++ 1 file changed, 70 insertions(+) create mode 100644 third_party/ax25/patches/ax25-apps-0.0.8-termios.patch (limited to 'third_party/ax25/patches/ax25-apps-0.0.8-termios.patch') diff --git a/third_party/ax25/patches/ax25-apps-0.0.8-termios.patch b/third_party/ax25/patches/ax25-apps-0.0.8-termios.patch new file mode 100644 index 0000000..56bdd51 --- /dev/null +++ b/third_party/ax25/patches/ax25-apps-0.0.8-termios.patch @@ -0,0 +1,70 @@ +--- a/ax25ipd/io.c ++++ b/ax25ipd/io.c +@@ -19,7 +19,8 @@ + #include + #include + #include +-#include ++#include ++#include + #include + #include + #include +@@ -32,7 +33,7 @@ + + #include "ax25ipd.h" + +-static struct termio nterm; ++static struct termios nterm; + + int ttyfd = -1; + static int udpsock = -1; +@@ -339,7 +340,7 @@ int open_io(void) + set_bpq_dev_call_and_up(ttydevice); + goto behind_normal_tty; + } +- if (ioctl(ttyfd, TCGETA, &nterm) < 0) { ++ if (tcgetattr(ttyfd, &nterm) < 0) { + perror("fetching tty device parameters"); + exit(1); + } +@@ -476,7 +477,7 @@ int open_io(void) + nterm.c_cc[VMIN] = 0; + nterm.c_cc[VTIME] = 0; + +- if (ioctl(ttyfd, TCSETA, &nterm) < 0) { ++ if (tcsetattr(ttyfd, TCSANOW, &nterm) < 0) { + perror("setting tty device parameters"); + exit(1); + } +--- a/ax25rtd/ax25rtd.c ++++ b/ax25rtd/ax25rtd.c +@@ -33,6 +33,7 @@ + + #include + #include ++#include + #include + #include + #include +--- a/ax25ipd/routing.c ++++ b/ax25ipd/routing.c +@@ -11,6 +11,7 @@ + #include + #include + #include ++#include + + #include "ax25ipd.h" + +--- a/call/call.c ++++ b/call/call.c +@@ -42,7 +42,7 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include -- cgit v1.3.1