nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff --git a/Configure b/Configure
2index f0ad787bc4..a48d2008c6 100755
3--- a/Configure
4+++ b/Configure
5@@ -1688,17 +1688,6 @@ unless ($disabled{devcryptoeng}) {
6 unless ($disabled{ktls}) {
7 $config{ktls}="";
8 if ($target =~ m/^linux/) {
9- my $usr = "/usr/$config{cross_compile_prefix}";
10- chop($usr);
11- if ($config{cross_compile_prefix} eq "") {
12- $usr = "/usr";
13- }
14- my $minver = (4 << 16) + (13 << 8) + 0;
15- my @verstr = split(" ",`cat $usr/include/linux/version.h | grep LINUX_VERSION_CODE`);
16-
17- if ($verstr[2] < $minver) {
18- disable('too-old-kernel', 'ktls');
19- }
20 } elsif ($target =~ m/^BSD/) {
21 my $cc = $config{CROSS_COMPILE}.$config{CC};
22 system("printf '#include <sys/types.h>\n#include <sys/ktls.h>' | $cc -E - >/dev/null 2>&1");