aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorfluffy <fluffy@FreeBSD.org>2012-06-20 09:30:36 +0800
committerfluffy <fluffy@FreeBSD.org>2012-06-20 09:30:36 +0800
commit3ddf14160c82774fb7a503153b077820d782bfdc (patch)
treef950f6eb8f3727851dd9987208d7cf8cb0fee4e6 /www
parentc78e59ad6935edd065490539907e2b4696dd000b (diff)
downloadfreebsd-ports-gnome-3ddf14160c82774fb7a503153b077820d782bfdc.tar.gz
freebsd-ports-gnome-3ddf14160c82774fb7a503153b077820d782bfdc.tar.zst
freebsd-ports-gnome-3ddf14160c82774fb7a503153b077820d782bfdc.zip
- Unbroke with clang/gcc47+ by use restrictive C++ construction
- Declare that code use gnu89 style - No PORTREVISION bump, users with base gcc not affected PR: 168579 Submitted by: myself Approved by: maintainer timeout (> 2 weeks) Obtained from: PkgSrc repo
Diffstat (limited to 'www')
-rw-r--r--www/suphp/Makefile1
-rw-r--r--www/suphp/files/patch-src_SmartPtr.hpp15
2 files changed, 16 insertions, 0 deletions
diff --git a/www/suphp/Makefile b/www/suphp/Makefile
index d847bcbba6e0..fe763236a84e 100644
--- a/www/suphp/Makefile
+++ b/www/suphp/Makefile
@@ -21,6 +21,7 @@ USE_AUTOTOOLS= aclocal:env automake:env autoconf:env libtool:env
# Maintainer has not tested suPHP 0.6.x on Apache 1.3.
USE_APACHE= 20+
CFLAGS+= -I${LOCALBASE}/include
+USE_CSTD= gnu89
USE_PHP= yes
WANT_PHP_CGI= yes
diff --git a/www/suphp/files/patch-src_SmartPtr.hpp b/www/suphp/files/patch-src_SmartPtr.hpp
new file mode 100644
index 000000000000..ce0bae544f89
--- /dev/null
+++ b/www/suphp/files/patch-src_SmartPtr.hpp
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_SmartPtr.hpp,v 1.1 2011/09/21 12:54:16 adam Exp $
+
+Fix C++ syntax
+
+--- src/SmartPtr.hpp.orig 2011-09-21 12:48:02.000000000 +0000
++++ src/SmartPtr.hpp
+@@ -150,7 +150,7 @@ namespace suPHP {
+ template<class T>
+ const SmartPtr<T>& suPHP::SmartPtr<T>::operator=(
+ const SmartPtr<T>& ref) {
+- this.reset(ref.ptr);
++ this->reset(ref.ptr);
+ return *this;
+ }
+