openbsd-ports/www/apache-httpd/patches/patch-server_util_pcre_c
2012-02-17 08:33:03 +00:00

17 lines
524 B
Plaintext

$OpenBSD: patch-server_util_pcre_c,v 1.1 2012/02/17 08:33:03 ajacoutot Exp $
Fix build with pcre >= 8.30 (from upstream)
--- server/util_pcre.c.orig Thu Nov 10 16:20:05 2005
+++ server/util_pcre.c Fri Feb 17 09:27:20 2012
@@ -137,7 +137,8 @@ preg->re_erroffset = erroffset;
if (preg->re_pcre == NULL) return AP_REG_INVARG;
-preg->re_nsub = pcre_info((const pcre *)preg->re_pcre, NULL, NULL);
+pcre_fullinfo((const pcre *)preg->re_pcre, NULL,
+ PCRE_INFO_CAPTURECOUNT, &(preg->re_nsub));
return 0;
}