diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-11 04:28:31 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-12-11 04:28:31 +0000 |
commit | 0d3cd356f86a61e8bd16da8cde1ac079d7e66290 (patch) | |
tree | e86b8cc04f2b232ccca536783870e2587d6d4f24 /ext/Errno | |
parent | 8fdf96e193e9dbf77ecf07946351093649d1650f (diff) | |
download | perl-0d3cd356f86a61e8bd16da8cde1ac079d7e66290.tar.gz |
Make Errno better in BeOS (the second hunk is
good on any platform). Still not working in BeOS
are the E constants that refer BeOS native error
constants (B_...) which are enums (*groan*).
p4raw-id: //depot/perl@13610
Diffstat (limited to 'ext/Errno')
-rw-r--r-- | ext/Errno/Errno_pm.PL | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL index efa613095a..5a8e9e76b4 100644 --- a/ext/Errno/Errno_pm.PL +++ b/ext/Errno/Errno_pm.PL @@ -109,6 +109,10 @@ sub get_files { # we might miss out on compiler-specific ones $file{"$ENV{GUSI}include:sys:errno.h"} = 1; + } elsif ($^O eq 'beos') { + # hidden in a special place + $file{'/boot/develop/headers/posix/errno.h'} = 1; + } else { open(CPPI,"> errno.c") or die "Cannot open errno.c"; @@ -202,6 +206,7 @@ sub write_errno_pm { my($name,$expr); next unless ($name, $expr) = /"(.*?)"\s*\[\s*\[\s*(.*?)\s*\]\s*\]/; next if $name eq $expr; + $expr =~ s/(\d+)[LU]+\b/$1/g; # 2147483647L et alia $err{$name} = eval $expr; } close(CPPO); |