diff -uNr mod_clamav.orig/Makefile mod_clamav/Makefile --- mod_clamav.orig/Makefile Tue Apr 20 09:34:54 2004 +++ mod_clamav/Makefile Wed Apr 21 17:47:57 2004 @@ -28,8 +28,12 @@ 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} diff -uNr mod_clamav.orig/files/patch-mod_clamav.c mod_clamav/files/patch-mod_clamav.c --- mod_clamav.orig/files/patch-mod_clamav.c Thu Jan 1 00:00:00 1970 +++ mod_clamav/files/patch-mod_clamav.c Wed Apr 21 17:47:57 2004 @@ -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: