From b90ac89b779f56a19e9711529a28fafacade7828 Mon Sep 17 00:00:00 2001
From: Slaven Rezic <cpansand@cvrsnica-freebsd-92>
Date: Sat, 9 Sep 2017 10:15:25 +0200
Subject: [PATCH] don't warn if LD_PRELOAD contains libpthread

---
lib/Net/DNS/Native.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/Net/DNS/Native.pm b/lib/Net/DNS/Native.pm
index 98a7e24..db3f238 100644
--- a/lib/Net/DNS/Native.pm
+++ b/lib/Net/DNS/Native.pm
@@ -7,7 +7,7 @@ use Config ();

our $VERSION = '0.08';

-our $PERL_OK = $Config::Config{usethreads}||$Config::Config{libs}=~/-l?pthread\b/;
+our $PERL_OK = $Config::Config{usethreads}||$Config::Config{libs}=~/-l?pthread\b/||($ENV{LD_PRELOAD}||'')=~m{\Q/usr/lib/libpthread.so};
unless ($PERL_OK) {
       warn "This perl may crash while using this module. See `WARNING' section in the documentation";
}
--
2.1.2