MFH: r476860

mail/bincimap: Fix build with Clang 6.0.0

Reviewed by:	koobs
Approved by:	koobs (mentor)
Differential Revision:	https://reviews.freebsd.org/D16658

Approved by:	ports-secteam (miwi)
This commit is contained in:
Fukang Chen 2018-08-11 09:04:30 +00:00
parent cc9d23bf15
commit b6aa182510
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2018Q3/; revision=476862
2 changed files with 18 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= bincimap
PORTVERSION= 1.2.13
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= mail
MASTER_SITES= SF/${PORTNAME}
DISTNAME= ${PORTNAME}-${PORTVERSION}final

View File

@ -0,0 +1,17 @@
greeting.cc:72:18: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]
version = "v"VERSION" ";
^
1 error generated.
--- src/greeting.cc.orig 2018-08-04 05:50:47 UTC
+++ src/greeting.cc
@@ -69,7 +69,7 @@ void Binc::showGreeting(void)
string tmp = session.globalconfig["Security"]["version in greeting"];
lowercase(tmp);
if (tmp == "yes")
- version = "v"VERSION" ";
+ version = "v" VERSION" ";
com << "* OK Welcome to Binc IMAP " << version
<< "Copyright (C) 2002-2005 Andreas Aardal Hanssen at "