From 37d9b0befabcc4b81a2c1c90a8ad90136d5f4898 Mon Sep 17 00:00:00 2001 From: Rmys Date: Fri, 14 Sep 2018 22:35:30 +0300 Subject: [PATCH] game:Rebuild New T --- game/sports/xmoto/files/www-cpp.patch | 48 +++++++++++++++++++++++++++ game/sports/xmoto/pspec.xml | 1 + 2 files changed, 49 insertions(+) create mode 100644 game/sports/xmoto/files/www-cpp.patch diff --git a/game/sports/xmoto/files/www-cpp.patch b/game/sports/xmoto/files/www-cpp.patch new file mode 100644 index 0000000000..27e48dee73 --- /dev/null +++ b/game/sports/xmoto/files/www-cpp.patch @@ -0,0 +1,48 @@ +diff -Nuar a/src/WWW.cpp b/src/WWW.cpp +--- a/src/WWW.cpp 2017-11-19 06:12:23.000000000 +0300 ++++ b/src/WWW.cpp 2018-09-14 22:22:41.605721326 +0300 +@@ -206,7 +206,7 @@ + std::string v_www_agent = WWW_AGENT; + + /* open the file */ +- if( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == false) { ++ if( (v_destinationFile = fopen(v_local_file_tmp.c_str(), "wb")) == NULL) { + throw Exception("error : unable to open output file " + + v_local_file_tmp); + } +@@ -320,7 +320,7 @@ + LogInfo(std::string("Uploading replay " + p_replayFilename).c_str()); + + /* open the file */ +- if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { ++ if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { + throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("UR")); + } + +@@ -478,7 +478,7 @@ + LogInfo("Sending vote"); + + /* open the file */ +- if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { ++ if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { + throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SV")); + } + +@@ -562,7 +562,7 @@ + LogInfo("Sending report"); + + /* open the file */ +- if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == false) { ++ if( (v_destinationFile = fopen(v_local_file.c_str(), "wb")) == NULL) { + throw Exception("error : unable to open output file " DEFAULT_WWW_MSGFILE("SR")); + } + +@@ -677,7 +677,7 @@ + LogInfo(std::string("Uploading dbsync " + p_dbSyncFilename + " to " + p_url_to_transfert).c_str()); + + /* open the file */ +- if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == false) { ++ if( (v_destinationFile = fopen(p_answerFile.c_str(), "wb")) == NULL) { + throw Exception("error : unable to open output file " + p_answerFile); + } + diff --git a/game/sports/xmoto/pspec.xml b/game/sports/xmoto/pspec.xml index 97c27d6fa9..a2c045682a 100644 --- a/game/sports/xmoto/pspec.xml +++ b/game/sports/xmoto/pspec.xml @@ -33,6 +33,7 @@ libjpeg-turbo-devel + www-cpp.patch lua52_compat.patch genericname_pl-tr.patch