Fix building on FreeBSD-7, with gcc 4.2.0

This commit is contained in:
Lev A. Serebryakov 2007-07-18 09:01:18 +00:00
parent 6d60e699c6
commit 4d03875cc6
2 changed files with 21 additions and 1 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= apache+mod_ssl
PORTVERSION= ${VERSION_APACHE}+${VERSION_RA}+${VERSION_MODSSL}
PORTREVISION?= 0
PORTREVISION?= 1
CATEGORIES= russian www security
MASTER_SITES= ${MASTER_SITE_APACHE_HTTPD} \
${MASTER_SITES_MODSSL:S/$/:modssl/} \

View file

@ -0,0 +1,20 @@
--- src/modules/extra/mod_charset.c.orig 2007-07-12 07:51:10.000000000 +0400
+++ src/modules/extra/mod_charset.c 2007-07-12 07:53:36.000000000 +0400
@@ -1201,6 +1201,8 @@
#endif
+#if ! defined(__FreeBSD_cc_version) || __FreeBSD_cc_version < 700003
+
/*
Case-insensitive strstr()
*/
@@ -1227,7 +1229,7 @@
}
-
+#endif
static void
add_redirect_to_table(array_header *h, charset_redirect_t *rd)