can-utils: fixup build after PR #78994

This commit is contained in:
Vladimír Čunát 2020-02-20 21:16:50 +01:00
parent f1bc81f0b8
commit f04825cc31
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -13,6 +13,12 @@ stdenv.mkDerivation {
sha256 = "1ygzp8rjr8f1gs48mb1pz7psdgbfhlvr6kjdnmzbsqcml06zvrpr";
};
# Fixup build with newer Linux headers.
postPatch = ''
sed '1i#include <linux/sockios.h>' -i \
slcanpty.c cansniffer.c canlogserver.c isotpdump.c isotpsniffer.c isotpperf.c
'';
preConfigure = ''makeFlagsArray+=(PREFIX="$out")'';
meta = with stdenv.lib; {