1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

- 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
This commit is contained in:
Dima Panov 2012-06-20 01:30:36 +00:00
parent e61325dc13
commit 6e7e349ec2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299667
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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;
}