aboutsummaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorFlorian Smeets <flo@FreeBSD.org>2013-11-11 20:24:35 +0000
committerFlorian Smeets <flo@FreeBSD.org>2013-11-11 20:24:35 +0000
commit693512f12848b14171a79a2d9bbb229cea9678f5 (patch)
treed09ff0a9810b590e97a680bff6f3710b3e3683aa /www
parent060ab65b650074b9e8771b5dcf514d30e541fab6 (diff)
downloadports-693512f12848b14171a79a2d9bbb229cea9678f5.tar.gz
ports-693512f12848b14171a79a2d9bbb229cea9678f5.zip
Notes
Diffstat (limited to 'www')
-rw-r--r--www/squid32/files/patch-compat-stdio.h11
-rw-r--r--www/squid32/files/patch-configure17
-rw-r--r--www/squid32/files/patch-include-Array.h33
-rw-r--r--www/squid32/files/patch-include-autoconf.h.in12
4 files changed, 73 insertions, 0 deletions
diff --git a/www/squid32/files/patch-compat-stdio.h b/www/squid32/files/patch-compat-stdio.h
new file mode 100644
index 000000000000..ecbb01fb7728
--- /dev/null
+++ b/www/squid32/files/patch-compat-stdio.h
@@ -0,0 +1,11 @@
+--- compat/stdio.h.orig 2013-07-13 15:22:32.000000000 +0200
++++ compat/stdio.h 2013-11-11 12:56:24.000000000 +0100
+@@ -46,7 +46,7 @@
+ #endif /* __USE_FILE_OFFSET64 && !__REDIRECT */
+
+ // Finally import the <cstdio> stuff we actually use
+-#if HAVE_CSTDIO
++#if defined(__cplusplus) && HAVE_CSTDIO
+ #include<cstdio>
+ #endif
+
diff --git a/www/squid32/files/patch-configure b/www/squid32/files/patch-configure
index 0b7bf2394c01..a169d378493a 100644
--- a/www/squid32/files/patch-configure
+++ b/www/squid32/files/patch-configure
@@ -1,5 +1,14 @@
--- configure.orig 2012-10-21 18:10:03.000000000 +0200
+++ configure 2012-10-21 18:27:39.000000000 +0200
+@@ -18416,7 +18416,7 @@
+ GCCVER2=`echo $GCCVER | awk '{print $1 * 100}'`
+ case "$host" in
+ i386-*-freebsd*)
+- if test $GCCVER2 -lt 300 ; then
++ if test "x$GCCVER" != x -a $GCCVER2 -lt 300 ; then
+ { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
+ $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
+ as_fn_error $? "GCC $GCCVER causes a coredump on $host.
@@ -22154,7 +22154,7 @@
done
@@ -45,3 +54,11 @@
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_message in -lkrb5" >&5
$as_echo_n "checking for error_message in -lkrb5... " >&6; }
if ${ac_cv_lib_krb5_error_message+:} false; then :
+@@ -24033,6 +24033,7 @@
+ cassert \
+ crypt.h \
+ cstdarg \
++ cstdio \
+ cstdlib \
+ cstring \
+ list \
diff --git a/www/squid32/files/patch-include-Array.h b/www/squid32/files/patch-include-Array.h
new file mode 100644
index 000000000000..3cabae2cbeca
--- /dev/null
+++ b/www/squid32/files/patch-include-Array.h
@@ -0,0 +1,33 @@
+--- include/Array.h.orig 2013-07-13 15:22:32.000000000 +0200
++++ include/Array.h 2013-11-11 13:32:43.000000000 +0100
+@@ -44,12 +44,19 @@
+ #include "compat/assert.h"
+
+ /* iterator support */
++#include <iterator>
+
+ template <class C>
+ class VectorIteratorBase
+ {
+
+ public:
++ typedef typename C::value_type value_type;
++ typedef std::forward_iterator_tag iterator_category;
++ typedef typename C::pointer pointer;
++ typedef typename C::reference reference;
++ typedef typename C::difference_type difference_type;
++
+ VectorIteratorBase();
+ VectorIteratorBase(C &);
+ VectorIteratorBase(size_t, C &);
+@@ -81,8 +88,10 @@
+ public:
+ typedef E value_type;
+ typedef E* pointer;
++ typedef E& reference;
+ typedef VectorIteratorBase<Vector<E> > iterator;
+ typedef VectorIteratorBase<Vector<E> const> const_iterator;
++ typedef ptrdiff_t difference_type;
+
+ void *operator new (size_t);
+ void operator delete (void *);
diff --git a/www/squid32/files/patch-include-autoconf.h.in b/www/squid32/files/patch-include-autoconf.h.in
new file mode 100644
index 000000000000..d725c56ff4b1
--- /dev/null
+++ b/www/squid32/files/patch-include-autoconf.h.in
@@ -0,0 +1,12 @@
+--- include/autoconf.h.in.orig 2013-07-13 15:22:53.000000000 +0200
++++ include/autoconf.h.in 2013-11-11 13:04:46.000000000 +0100
+@@ -151,6 +151,9 @@
+ /* Define to 1 if you have the <cstdarg> header file. */
+ #undef HAVE_CSTDARG
+
++/* Define to 1 if you have the <cstdio> header file. */
++#undef HAVE_CSTDIO
++
+ /* Define to 1 if you have the <cstdlib> header file. */
+ #undef HAVE_CSTDLIB
+