about summary refs log tree commit
diff options
context:
space:
mode:
authorSteve Hay <steve.m.hay@googlemail.com>2014-01-29 00:26:51 -0800
committerSteve Hay <steve.m.hay@googlemail.com>2014-01-29 00:26:51 -0800
commit888ec2315afbd5c17c16157a3f71dac75b3ef85c (patch)
tree9e103554038f9f1ebb49add4abc0c3ae309a00d2
parent121b46ef80e0c8714229bed2570a1927c887dfc0 (diff)
parentf03408aa5b712336301a4274dfb016690ba9d4e1 (diff)
downloadperl-libnet-888ec2315afbd5c17c16157a3f71dac75b3ef85c.tar.gz
Merge pull request #2 from Hugmeir/master
Net::Domain: Stop domainname() from giving out warnings in android
-rw-r--r--Net/Domain.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/Net/Domain.pm b/Net/Domain.pm
index d47f8be..59c803a 100644
--- a/Net/Domain.pm
+++ b/Net/Domain.pm
@@ -169,7 +169,7 @@ sub _hostdomain {
     }
 
     chop($dom = `domainname 2>/dev/null`)
-      unless (defined $dom || $^O =~ /^(?:cygwin|MSWin32)/);
+      unless (defined $dom || $^O =~ /^(?:cygwin|MSWin32|android)/);
 
     if (defined $dom) {
       my @h = ();