mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-19 00:13:33 +00:00
games/quadra: Fix build with Clang 6
source/update.cpp:83:20: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] buf.append("GET "UPDATE_PATH" HTTP/1.0\r\n"); ^ source/update.cpp:84:22: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] buf.append("Host: "UPDATE_HOST"\r\n"); ^ http://beefy12.nyi.freebsd.org/data/head-amd64-default/p473592_s335809/logs/quadra-1.3.0_6.log
This commit is contained in:
parent
28aef158c0
commit
17ed645ed4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=474113
13
games/quadra/files/patch-source_update.cpp
Normal file
13
games/quadra/files/patch-source_update.cpp
Normal file
@ -0,0 +1,13 @@
|
||||
--- source/update.cpp.orig 2018-07-07 17:27:09 UTC
|
||||
+++ source/update.cpp
|
||||
@@ -80,8 +80,8 @@ void AutoUpdaterImpl::init() {
|
||||
}
|
||||
|
||||
buf.resize(0);
|
||||
- buf.append("GET "UPDATE_PATH" HTTP/1.0\r\n");
|
||||
- buf.append("Host: "UPDATE_HOST"\r\n");
|
||||
+ buf.append("GET " UPDATE_PATH " HTTP/1.0\r\n");
|
||||
+ buf.append("Host: " UPDATE_HOST "\r\n");
|
||||
buf.append("Connection: close\r\n");
|
||||
snprintf(st, sizeof(st), "User-Agent: Quadra/%s\r\n", VERSION_STRING);
|
||||
buf.append(st);
|
Loading…
Reference in New Issue
Block a user