Merge pull request #33501 from dtzWill/fix/tcpdump-kernelMajor

tcpdump: fix eval if no kernelMajor specified, assume compat
This commit is contained in:
Orivej Desh 2018-01-06 04:14:14 +00:00 committed by GitHub
commit 856df0e074
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -23,7 +23,7 @@ stdenv.mkDerivation rec {
crossAttrs = {
LDFLAGS = if enableStatic then "-static" else "";
configureFlags = [ "ac_cv_linux_vers=2" ] ++ (stdenv.lib.optional
(hostPlatform.platform.kernelMajor == "2.4") "--disable-ipv6");
(hostPlatform.platform.kernelMajor or null == "2.4") "--disable-ipv6");
};
meta = {