about summary refs log tree commit homepage
path: root/t/httpd-https.t
diff options
context:
space:
mode:
Diffstat (limited to 't/httpd-https.t')
-rw-r--r--t/httpd-https.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/httpd-https.t b/t/httpd-https.t
index 9ce060c8..ee5ced0f 100644
--- a/t/httpd-https.t
+++ b/t/httpd-https.t
@@ -87,7 +87,7 @@ for my $args (
 
         SKIP: {
                 skip 'TCP_DEFER_ACCEPT is Linux-only', 2 if $^O ne 'linux';
-                my $var = Socket::TCP_DEFER_ACCEPT();
+                my $var = eval { Socket::TCP_DEFER_ACCEPT() } // 9;
                 defined(my $x = getsockopt($https, IPPROTO_TCP, $var)) or die;
                 ok(unpack('i', $x) > 0, 'TCP_DEFER_ACCEPT set on https');
         };