1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/www/hypermail/files/patch-src-pcre-pcreposix.c
Martin Matuska 205f1ac23d Bump pcre library dependency due to 8.30 update
Add (vendor) patch for deprecated pcre_info()
2012-02-14 12:44:23 +00:00

13 lines
399 B
C

--- src/pcre/pcreposix.c.orig 2003-07-03 20:04:06.000000000 +0200
+++ src/pcre/pcreposix.c 2012-02-14 12:49:55.077985140 +0100
@@ -217,7 +217,8 @@
if (preg->re_pcre == NULL) return pcre_posix_error_code(errorptr);
-preg->re_nsub = pcre_info(preg->re_pcre, NULL, NULL);
+pcre_fullinfo((const pcre *)preg->re_pcre, NULL,
+ PCRE_INFO_CAPTURECOUNT, &(preg->re_nsub));
return 0;
}