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:
parent
e61325dc13
commit
6e7e349ec2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=299667
@ -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
|
||||
|
||||
|
15
www/suphp/files/patch-src_SmartPtr.hpp
Normal file
15
www/suphp/files/patch-src_SmartPtr.hpp
Normal 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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user