- Fix build on 4.x

Approved by:	maintainer, portmgr (marcus)
This commit is contained in:
Clement Laforet 2004-04-21 20:39:23 +00:00
parent e99b5c6140
commit 673b269d01
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=107781
2 changed files with 25 additions and 2 deletions

View file

@ -28,8 +28,12 @@ CLAMAV_PORT= security/clamav
CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \
--libdir=${PREFIX}/lib/apache2
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS}"
CPPFLAGS+= -I${LOCALBASE}/include \
${PTHREAD_CFLAGS}
LDFLAGS+= -L${LOCALBASE}/lib \
${PTHREAD_LIBS}
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}" \
LDFLAGS="${LDFLAGS}"
post-install:
@${CAT} ${PKGMESSAGE}

View file

@ -0,0 +1,19 @@
--- mod_clamav.c.orig Wed Apr 21 18:29:42 2004
+++ mod_clamav.c Wed Apr 21 18:30:07 2004
@@ -310,6 +310,7 @@
int rc = 1, i, l;
char *ct;
const char *action;
+ clamav_safeuri *p;
/* requests with only headers can be bypassed */
if (f->r->header_only) {
@@ -339,7 +340,7 @@
}
/* check safe uri */
- clamav_safeuri *p = (clamav_safeuri *)(rec->safeuris->elts);
+ p = (clamav_safeuri *)(rec->safeuris->elts);
for (i = 0; i < rec->safeuris->nelts; i++) {
switch (p[i].matchtype) {
case MATCH_SAFE_URI: