aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authortobez <tobez@FreeBSD.org>2006-02-10 16:35:32 +0800
committertobez <tobez@FreeBSD.org>2006-02-10 16:35:32 +0800
commit710d316401af975f0af0646fc9f35a24636fd14f (patch)
tree42d4d36cb07a86477008774c053dc1da91f1cd2c /www
parent1c279eb2b71d8459119e2ca4b1d68876f484d2d8 (diff)
downloadfreebsd-ports-gnome-710d316401af975f0af0646fc9f35a24636fd14f.tar.gz
freebsd-ports-gnome-710d316401af975f0af0646fc9f35a24636fd14f.tar.zst
freebsd-ports-gnome-710d316401af975f0af0646fc9f35a24636fd14f.zip
Make it build with older gcc (4.X).
Diffstat (limited to 'www')
-rw-r--r--www/p5-HTML-Parser/Makefile2
-rw-r--r--www/p5-HTML-Parser/files/patch-hparser.c24
2 files changed, 25 insertions, 1 deletions
diff --git a/www/p5-HTML-Parser/Makefile b/www/p5-HTML-Parser/Makefile
index 0635b6383675..b217c9ad9db5 100644
--- a/www/p5-HTML-Parser/Makefile
+++ b/www/p5-HTML-Parser/Makefile
@@ -7,7 +7,7 @@
PORTNAME= HTML-Parser
PORTVERSION= 3.49
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= www perl5
MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= HTML
diff --git a/www/p5-HTML-Parser/files/patch-hparser.c b/www/p5-HTML-Parser/files/patch-hparser.c
new file mode 100644
index 000000000000..bb46bc567acb
--- /dev/null
+++ b/www/p5-HTML-Parser/files/patch-hparser.c
@@ -0,0 +1,24 @@
+--- hparser.c.orig Fri Feb 10 09:28:37 2006
++++ hparser.c Fri Feb 10 09:28:57 2006
+@@ -135,16 +135,16 @@ report_event(PSTATE* p_state,
+ #define CHR_DIST(a,b) ((a) - (b))
+ #endif
+
++ /* capture offsets */
++ STRLEN offset = p_state->offset;
++ STRLEN line = p_state->line;
++ STRLEN column = p_state->column;
++
+ /* some events might still fire after a handler has signaled eof
+ * so suppress them here.
+ */
+ if (p_state->eof)
+ return;
+-
+- /* capture offsets */
+- STRLEN offset = p_state->offset;
+- STRLEN line = p_state->line;
+- STRLEN column = p_state->column;
+
+ #if 0
+ { /* used for debugging at some point */