www/p5-WWW-Curl: Fix build on current

PR:		286207
Reported by:	David Wolfskill <david@catwhisker.org>
Approved by:	sunpoet (maintainer)
Obtained from:	Stewart Morgan <stewart+FreeBSD-BugZilla@arnos-vale.net>
Sponsored by:	Netflix
This commit is contained in:
Olivier Cochard 2025-04-29 15:36:52 +02:00
parent b635b2d81e
commit 1925bda830

View file

@ -1,6 +1,6 @@
--- Makefile.PL.orig 2014-02-21 16:08:09 UTC --- Makefile.PL.orig 2014-02-21 16:08:09 UTC
+++ Makefile.PL +++ Makefile.PL
@@ -100,6 +100,16 @@ if (!defined($curl_h)) { @@ -100,6 +100,17 @@ if (!defined($curl_h)) {
print "Found curl.h in $curl_h\n"; print "Found curl.h in $curl_h\n";
my @syms; my @syms;
my $has_cpp = 0; my $has_cpp = 0;
@ -8,6 +8,7 @@
+ CURL_DEPRECATED + CURL_DEPRECATED
+ CURL_DID_MEMORY_FUNC_TYPEDEFS + CURL_DID_MEMORY_FUNC_TYPEDEFS
+ CURL_IGNORE_DEPRECATION + CURL_IGNORE_DEPRECATION
+ CURL_HAS_DECLSPEC_ATTRIBUTE
+ CURL_STRICTER + CURL_STRICTER
+ CURL_WIN32 + CURL_WIN32
+ CURLINC_CURL_H + CURLINC_CURL_H
@ -17,7 +18,7 @@
open(H_IN, "-|", "cpp", $curl_h) and $has_cpp++; open(H_IN, "-|", "cpp", $curl_h) and $has_cpp++;
unless ($has_cpp) { unless ($has_cpp) {
warn "No working cpp ($!). Parsing curl.h in Perl"; warn "No working cpp ($!). Parsing curl.h in Perl";
@@ -121,6 +131,7 @@ if (!defined($curl_h)) { @@ -121,6 +132,7 @@ if (!defined($curl_h)) {
open (H, "<", $curl_h) or die ("Cannot open $curl_h: ".$!); open (H, "<", $curl_h) or die ("Cannot open $curl_h: ".$!);
while(<H>) { while(<H>) {
if (/^#define (CURL[A-Za-z0-9_]*)/) { if (/^#define (CURL[A-Za-z0-9_]*)/) {