Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/Configure b/Configure 2index a558e5ab1a..9a884f0b0f 100755 3--- a/Configure 4+++ b/Configure 5@@ -1714,20 +1714,6 @@ unless ($disabled{devcryptoeng}) { 6 7 unless ($disabled{ktls}) { 8 $config{ktls}=""; 9- my $cc = $config{CROSS_COMPILE}.$config{CC}; 10- if ($target =~ m/^linux/) { 11- system("printf '#include <sys/types.h>\n#include <linux/tls.h>' | $cc -E - >/dev/null 2>&1"); 12- if ($? != 0) { 13- disable('too-old-kernel', 'ktls'); 14- } 15- } elsif ($target =~ m/^BSD/) { 16- system("printf '#include <sys/types.h>\n#include <sys/ktls.h>' | $cc -E - >/dev/null 2>&1"); 17- if ($? != 0) { 18- disable('too-old-freebsd', 'ktls'); 19- } 20- } else { 21- disable('not-linux-or-freebsd', 'ktls'); 22- } 23 } 24 25 push @{$config{openssl_other_defines}}, "OPENSSL_NO_KTLS" if ($disabled{ktls});