3
0
Fork 0
forked from mirrors/nixpkgs

cnijfilter_4_00: fix broken build

30286ebcc1 updated glibc to 2.32.
This removed the deprecated <sys/sysctl.h> header, which caused a build
error on this package.
Since this header doesn't seem to be required it was removed with this
patch.
This commit is contained in:
paumr 2021-07-05 12:01:31 +02:00
parent 8cfb74be5b
commit c9f2aeec17
2 changed files with 11 additions and 0 deletions

View file

@ -41,6 +41,7 @@ in stdenv.mkDerivation {
./patches/cnijfilter-4.00-4-ppd.patch
./patches/cnijfilter-4.00-5-abi_x86_32.patch
./patches/cnijfilter-4.00-6-headers.patch
./patches/cnijfilter-4.00-7-sysctl.patch
];
postPatch = ''

View file

@ -0,0 +1,10 @@
--- a/cnijnpr/src/cnijnpr.c
+++ b/cnijnpr/src/cnijnpr.c
@@ -33,7 +33,6 @@
#include <signal.h>
#include <sys/ioctl.h>
#include <net/if.h>
-#include <sys/sysctl.h>
#include <sys/types.h>
#include <unistd.h>
#include <config.h>