about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/openssl/3.0/openssl-disable-kernel-detection.patch
blob: 04585565a331a8139d468d3c0554c2b770c1b9a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
diff --git a/Configure b/Configure
index a558e5ab1a..9a884f0b0f 100755
--- a/Configure
+++ b/Configure
@@ -1714,20 +1714,6 @@ unless ($disabled{devcryptoeng}) {
 
 unless ($disabled{ktls}) {
     $config{ktls}="";
-    my $cc = $config{CROSS_COMPILE}.$config{CC};
-    if ($target =~ m/^linux/) {
-        system("printf '#include <sys/types.h>\n#include <linux/tls.h>' | $cc -E - >/dev/null 2>&1");
-        if ($? != 0) {
-            disable('too-old-kernel', 'ktls');
-        }
-    } elsif ($target =~ m/^BSD/) {
-        system("printf '#include <sys/types.h>\n#include <sys/ktls.h>' | $cc -E - >/dev/null 2>&1");
-        if ($? != 0) {
-            disable('too-old-freebsd', 'ktls');
-        }
-    } else {
-        disable('not-linux-or-freebsd', 'ktls');
-    }
 }
 
 push @{$config{openssl_other_defines}}, "OPENSSL_NO_KTLS" if ($disabled{ktls});