patch-Makefile_PL 901 B

1234567891011121314151617181920212223242526272829
  1. $OpenBSD: patch-Makefile_PL,v 1.2 2017/06/01 12:18:54 espie Exp $
  2. https://rt.cpan.org/Public/Bug/Display.html?id=117793
  3. Also, add a zero to defined constants. So if the define is empty, the code
  4. still makes sense.
  5. Index: Makefile.PL
  6. --- Makefile.PL.orig
  7. +++ Makefile.PL
  8. @@ -127,7 +127,7 @@ if (!defined($curl_h)) {
  9. close H;
  10. for my $e (sort @syms) {
  11. - if($e =~ /(OBSOLETE|^CURL_EXTERN|_LAST\z|_LASTENTRY\z)/) {
  12. + if($e =~ /(OBSOLETE|^CURL_EXTERN|^CURL_STRICTER\z|_LAST\z|_LASTENTRY\z)/) {
  13. next;
  14. }
  15. my ($group) = $e =~ m/^([^_]+_)/;
  16. @@ -190,7 +190,7 @@ HERE2
  17. if ($next_initial eq $initial) {
  18. print CURL_XS
  19. -" if (strEQ(name, \"$remainder\")) return "."$groupref->{$option};\n";
  20. +" if (strEQ(name, \"$remainder\")) return "."$groupref->{$option}+0;\n";
  21. $count++;
  22. }