1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-01 05:45:45 +00:00

net/cagibi fix build with clang6

PR:		224945
Reported by:	jbeich
This commit is contained in:
Tobias C. Berner 2018-01-06 18:39:20 +00:00
parent b66396ee83
commit 2e8b91b46f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=458285
2 changed files with 17 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= cagibi
PORTVERSION= 0.2.0
PORTREVISION= 1
CATEGORIES= net devel
MASTER_SITES= KDE/stable/${PORTNAME}

View File

@ -0,0 +1,16 @@
daemon/ssdpwatcher.cpp:122:17: error: invalid suffix on literal; C++11
requires a space between literal and identifier [-Wreserved-user-defined-literal]
--- daemon/ssdpwatcher.cpp.orig 2018-01-06 18:31:07 UTC
+++ daemon/ssdpwatcher.cpp
@@ -119,8 +119,8 @@ qDebug() << "Trying to find UPnP devices on the local
// send a HTTP M-SEARCH message to 239.255.255.250:1900
const QByteArray searchMessage =
"M-SEARCH * HTTP/1.1\r\n"
- "HOST: "SSDP_BROADCAST_ADDRESS":"SSDP_PORT"\r\n"
- "ST:"ROOTDEVICE"\r\n"
+ "HOST: " SSDP_BROADCAST_ADDRESS ":" SSDP_PORT "\r\n"
+ "ST:" ROOTDEVICE "\r\n"
// "ST: ssdp:all\r\n"
"MAN:\"ssdp:discover\"\r\n"
"MX:" + QByteArray::number(searchTimeout) + "\r\n" // max number of seconds to wait for response