diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-21 17:01:16 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2000-11-21 17:01:16 +0000 |
commit | 0e32cd814ab750f37cd765de6c19a6a112c89a81 (patch) | |
tree | e9437eadb587a5acdf4c3963eb128d2dc2fdc970 /makedef.pl | |
parent | a6259068d1da929c6ca4f5acc9ed0401b5239600 (diff) | |
download | perl-0e32cd814ab750f37cd765de6c19a6a112c89a81.tar.gz |
Export the SOCKS workaround symbols only if necessary.
p4raw-id: //depot/perl@7791
Diffstat (limited to 'makedef.pl')
-rw-r--r-- | makedef.pl | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/makedef.pl b/makedef.pl index e576245831..bf43e665b2 100644 --- a/makedef.pl +++ b/makedef.pl @@ -88,7 +88,7 @@ unless ($PLATFORM eq 'win32') { } if ($PLATFORM eq 'os2') { $CONFIG_ARGS = $1 if /^(?:config_args)='(.+)'$/; - $ARCHNAME = $1 if /^(?:archname)='(.+)'$/; + $ARCHNAME = $1 if /^(?:archname)='(.+)'$/; } } close(CFG); @@ -97,12 +97,9 @@ unless ($PLATFORM eq 'win32') { open(CFG,$config_h) || die "Cannot open $config_h: $!\n"; while (<CFG>) { $define{$1} = 1 if /^\s*#\s*define\s+(MYMALLOC)\b/; - $define{$1} = 1 if /^\s*#\s*define\s+(USE_5005THREADS)\b/; - $define{$1} = 1 if /^\s*#\s*define\s+(USE_ITHREADS)\b/; - $define{$1} = 1 if /^\s*#\s*define\s+(USE_PERLIO)\b/; $define{$1} = 1 if /^\s*#\s*define\s+(MULTIPLICITY)\b/; - $define{$1} = 1 if /^\s*#\s*define\s+(PERL_IMPLICIT_SYS)\b/; - $define{$1} = 1 if /^\s*#\s*define\s+(PERL_BINCOMPAT_5005)\b/; + $define{$1} = 1 if /^\s*#\s*define\s+(PERL_\w+)\b/; + $define{$1} = 1 if /^\s*#\s*define\s+(USE_\w+)\b/; } close(CFG); @@ -480,6 +477,18 @@ unless ($define{'FAKE_THREADS'}) { skip_symbols [qw(PL_curthr)]; } +# All quad int platforms are assumed to have broken SOCKS +unless ($define{USE_SOCKS} && $define{USE_64_BIT_ALL}) { + skip_symbols [qw( + Perl_do_s64_fread + Perl_do_s64_getc + Perl_do_s64_delete_buffer + Perl_do_s64_seek + Perl_do_s64_tell + Perl_do_s64_tell + )]; +} + sub readvar { my $file = shift; my $proc = shift || sub { "PL_$_[2]" }; |