about summary refs log tree commit homepage
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2022-07-21 05:36:12 +0000
committerEric Wong <e@80x24.org>2022-07-21 14:03:58 +0000
commitf0b735529e3083e222f3edd6644cd927ad35bb39 (patch)
treecb37a5550cfdb9186840c6d4de566c2cb8072cbf /t
parent5f28e29a9cac8d0f61af4212895585ad930bc370 (diff)
downloadpublic-inbox-f0b735529e3083e222f3edd6644cd927ad35bb39.tar.gz
I know Linux has a stable ABI for this, and FreeBSD seems to,
too (*BSDs don't have stable syscall numbers, though).
I suspect this is safe enough for all *BSDs.

This is stricter than the MboxLock one since we use exact byte
ranges with these locks.
Diffstat (limited to 't')
-rw-r--r--t/pop3d.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/pop3d.t b/t/pop3d.t
index 9eb110d6..e5d53767 100644
--- a/t/pop3d.t
+++ b/t/pop3d.t
@@ -5,8 +5,9 @@ use v5.12;
 use PublicInbox::TestCommon;
 use Socket qw(IPPROTO_TCP SOL_SOCKET);
 # Net::POP3 is part of the standard library, but distros may split it off...
-require_mods(qw(DBD::SQLite Net::POP3 IO::Socket::SSL File::FcntlLock));
+require_mods(qw(DBD::SQLite Net::POP3 IO::Socket::SSL));
 require_git('2.6'); # for v2
+require_mods(qw(File::FcntlLock)) if $^O !~ /\A(?:linux|freebsd)\z/;
 use_ok 'IO::Socket::SSL';
 use_ok 'PublicInbox::TLS';
 my ($tmpdir, $for_destroy) = tmpdir();