diff options
author | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-07-08 01:34:34 +0800 |
---|---|---|
committer | Tobias Kortkamp <tobik@FreeBSD.org> | 2018-07-08 01:34:34 +0800 |
commit | 17ed645ed489142253f036331d52648d35e08f73 (patch) | |
tree | ff1f16acb9ffb76fc833cda8cb7e59b24a5bbdcf /games/quadra | |
parent | 28aef158c0ca397e53bf2684d3380b88444b64bb (diff) | |
download | freebsd-ports-gnome-17ed645ed489142253f036331d52648d35e08f73.tar.gz freebsd-ports-gnome-17ed645ed489142253f036331d52648d35e08f73.tar.zst freebsd-ports-gnome-17ed645ed489142253f036331d52648d35e08f73.zip |
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
Diffstat (limited to 'games/quadra')
-rw-r--r-- | games/quadra/files/patch-source_update.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/games/quadra/files/patch-source_update.cpp b/games/quadra/files/patch-source_update.cpp new file mode 100644 index 000000000000..d5987b85c646 --- /dev/null +++ b/games/quadra/files/patch-source_update.cpp @@ -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); |