diff --git a/pkgs/by-name/ax/ax25-apps/glibc-2.42.patch b/pkgs/by-name/ax/ax25-apps/glibc-2.42.patch new file mode 100644 index 000000000000..1a0c7700549e --- /dev/null +++ b/pkgs/by-name/ax/ax25-apps/glibc-2.42.patch @@ -0,0 +1,26 @@ +--- a/ax25ipd/io.c ++++ b/ax25ipd/io.c +@@ -19,20 +19,21 @@ + #include + #include + #include +-#include ++#include + #include + #include + #include + #include + #include + #include ++#include + #include + #include + #include + + #include "ax25ipd.h" + +-static struct termio nterm; ++static struct termios nterm; + + int ttyfd = -1; + static int udpsock = -1; diff --git a/pkgs/by-name/ax/ax25-apps/package.nix b/pkgs/by-name/ax/ax25-apps/package.nix index dc71602f686f..f92d65f2051e 100644 --- a/pkgs/by-name/ax/ax25-apps/package.nix +++ b/pkgs/by-name/ax/ax25-apps/package.nix @@ -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"