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:
@@ -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;
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user