diff options
author | Nicholas Clark <nick@ccl4.org> | 2022-08-02 10:34:20 +0200 |
---|---|---|
committer | Yves Orton <demerphq@gmail.com> | 2023-02-11 07:17:42 +0100 |
commit | 3c1e354e5b7b90188016dbabdc501dd14a534022 (patch) | |
tree | ad8d5fd97010328246d6748d6eee04399810e71f /Porting | |
parent | ab84059c0fef8b871337dc492816378eb6a6b497 (diff) | |
download | perl-3c1e354e5b7b90188016dbabdc501dd14a534022.tar.gz |
bisect-runner.pl must ensure prototypes exist for htovs() etc
These fallback functions are defined in util.c, but initially did not have
any prototypes in a header.
Diffstat (limited to 'Porting')
-rwxr-xr-x | Porting/bisect-runner.pl | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/Porting/bisect-runner.pl b/Porting/bisect-runner.pl index 9aaabc20bf..fb189cffb7 100755 --- a/Porting/bisect-runner.pl +++ b/Porting/bisect-runner.pl @@ -4266,8 +4266,26 @@ index 900b491..6251a0b 100644 EOPATCH } - if ($major < 8 && $^O eq 'openbsd' - && !extract_from_file('perl.h', qr/include <unistd\.h>/)) { + if ($major < 8 && !extract_from_file('perl.h', qr/\bshort htovs\b/)) { + # This is part of commit c623ac675720b314 + apply_patch(<<'EOPATCH'); +diff --git a/perl.h b/perl.h +index 023b90b7ea..59a21faecd 100644 +--- a/perl.h ++++ b/perl.h +@@ -2279,4 +2279,8 @@ struct ptr_tbl { + # endif + /* otherwise default to functions in util.c */ ++short htovs(short n); ++short vtohs(short n); ++long htovl(long n); ++long vtohl(long n); + #endif + +EOPATCH + } + + if ($major < 8 && !extract_from_file('perl.h', qr/include <unistd\.h>/)) { # This is part of commit 3f270f98f9305540, applied at a slightly # different location in perl.h, where the context is stable back to # 5.000 |