X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Fhttpd-https.t;h=fcfa12afb04808740a8bd90ae9e5b490e19f22bb;hb=352956bcf1933bdaeba631deb4ade7dc7fd754b1;hp=9ce060c8c7c1c8865648f92c381704eabac941c0;hpb=62f28026e624ed30d620063a0fa92cbedb7f6673;p=public-inbox.git
diff --git a/t/httpd-https.t b/t/httpd-https.t
index 9ce060c8..fcfa12af 100644
--- a/t/httpd-https.t
+++ b/t/httpd-https.t
@@ -1,4 +1,4 @@
-# Copyright (C) 2019 all contributors
+# Copyright (C) 2019-2020 all contributors
# License: AGPL-3.0+
use strict;
use warnings;
@@ -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');
};