ax25-apps: fix glibc-2.42 build failure

Without the change the build fails in `master` as https://hydra.nixos.org/build/319882690:

```
io.c:22:10: fatal error: termio.h: No such file or directory
   22 | #include <termio.h>
      |          ^~~~~~~~~~
```
This commit is contained in:
Sergei Trofimovich
2026-02-14 06:44:36 +00:00
parent 9a09eea96b
commit a94453374a
2 changed files with 31 additions and 0 deletions
@@ -0,0 +1,26 @@
--- a/ax25ipd/io.c
+++ b/ax25ipd/io.c
@@ -19,20 +19,21 @@
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
-#include <termio.h>
+#include <termios.h>
#include <time.h>
#include <unistd.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <netinet/in_systm.h>
#include <netinet/ip.h>
+#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/socket.h>
#include "ax25ipd.h"
-static struct termio nterm;
+static struct termios nterm;
int ttyfd = -1;
static int udpsock = -1;
+5
View File
@@ -29,6 +29,11 @@ stdenv.mkDerivation {
hash = "sha256-RLeFndis2OhIkJPLD+YfEUrJdZL33huVzlHq+kGq7dA=";
};
patches = [
# Fix build against glibc-2.42
./glibc-2.42.patch
];
configureFlags = [
"--sysconfdir=/etc"
"--localstatedir=/var/lib"