Fix build with pcre >= 8.30 (from upstream)
This commit is contained in:
parent
93a2858850
commit
609acea29b
@ -1,10 +1,11 @@
|
||||
# $OpenBSD: Makefile,v 1.28 2011/09/01 13:40:09 giovanni Exp $
|
||||
# $OpenBSD: Makefile,v 1.29 2012/02/17 08:33:03 ajacoutot Exp $
|
||||
|
||||
COMMENT= apache HTTP server
|
||||
|
||||
V= 2.2.20
|
||||
PKGNAME= apache-httpd-${V}
|
||||
DISTNAME= httpd-${V}
|
||||
REVISION= 0
|
||||
|
||||
CATEGORIES= www net
|
||||
|
||||
|
16
www/apache-httpd/patches/patch-server_util_pcre_c
Normal file
16
www/apache-httpd/patches/patch-server_util_pcre_c
Normal file
@ -0,0 +1,16 @@
|
||||
$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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user