summaryrefslogtreecommitdiff
path: root/lib/Sys
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>2000-01-10 05:27:03 +0000
committerGurusamy Sarathy <gsar@cpan.org>2000-01-10 05:27:03 +0000
commit3a2f06e93704a4187f4ca10ac210246cacbd9b05 (patch)
treee2098523c3499c3b9f0441e69fa72fd71a73907a /lib/Sys
parent5a3e78123e3b27b54e7f651bd5fa051044f04189 (diff)
downloadperl-3a2f06e93704a4187f4ca10ac210246cacbd9b05.tar.gz
EPOC port update (from Olaf Flebbe <O.Flebbe@science-computing.de>)
p4raw-id: //depot/perl@4782
Diffstat (limited to 'lib/Sys')
-rw-r--r--lib/Sys/Hostname.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Sys/Hostname.pm b/lib/Sys/Hostname.pm
index e96822e414..4d93f91f9e 100644
--- a/lib/Sys/Hostname.pm
+++ b/lib/Sys/Hostname.pm
@@ -65,6 +65,10 @@ sub hostname {
chomp($host = `hostname 2> NUL`) unless defined $host;
return $host;
}
+ elsif ($^O eq 'epoc') {
+ $host = 'localhost';
+ return $host;
+ }
else { # Unix
# method 2 - syscall is preferred since it avoids tainting problems