$Config{myarchname} is not a good architecture identifier
Jarkko Hietaniemi [Sat, 13 Nov 1999 16:29:37 +0000 (16:29 +0000)]
because it may contain host/node identification like
CPU serial numbers.

p4raw-id: //depot/cfgperl@4561

ext/Errno/Errno_pm.PL

index c0598a4..7f884a8 100644 (file)
@@ -180,8 +180,9 @@ use Exporter ();
 use Config;
 use strict;
 
-\$Config{'myarchname'} eq "$Config{'myarchname'}" or
-       die "Errno architecture ($Config{'myarchname'}) does not match executable architecture (\$Config{'myarchname'})";
+"\$Config{'archname'}-\$Config{'osvers'}" eq
+"$Config{'archname'}-$Config{'osvers'}" or
+       die "Errno architecture ($Config{'archname'}-$Config{'osvers'}) does not match executable architecture (\$Config{'archname'-\$Config{'osvers'})";
 
 \$VERSION = "$VERSION";
 \@ISA = qw(Exporter);