summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Levine <plevine457@gmail.com>2018-03-30 20:25:35 -0400
committerAndreas Sturmlechner <asturm@gentoo.org>2018-04-04 23:33:40 +0200
commit12df4e984cec6f375feacf528c44ae00c4c4e6b2 (patch)
tree265f286b999b0527df432c578d7e16fa8ce33a7c /games-sports/torcs/files
parentsci-geosciences/grass: Fix build with glibc-2.26 (diff)
downloadgentoo-12df4e984cec6f375feacf528c44ae00c4c4e6b2.tar.gz
gentoo-12df4e984cec6f375feacf528c44ae00c4c4e6b2.tar.bz2
gentoo-12df4e984cec6f375feacf528c44ae00c4c4e6b2.zip
games-sports/torcs: Fix building with GCC-7
Closes: https://bugs.gentoo.org/631542 Package-Manager: Portage-2.3.16, Repoman-2.3.6 Closes: https://github.com/gentoo/gentoo/pull/7728
Diffstat (limited to 'games-sports/torcs/files')
-rw-r--r--games-sports/torcs/files/torcs-1.3.6-gcc7.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/games-sports/torcs/files/torcs-1.3.6-gcc7.patch b/games-sports/torcs/files/torcs-1.3.6-gcc7.patch
new file mode 100644
index 000000000000..af139ad509de
--- /dev/null
+++ b/games-sports/torcs/files/torcs-1.3.6-gcc7.patch
@@ -0,0 +1,11 @@
+--- a/src/libs/musicplayer/OpenALMusicPlayer.cpp
++++ b/src/libs/musicplayer/OpenALMusicPlayer.cpp
+@@ -161,7 +161,7 @@
+ {
+ char pcm[BUFFERSIZE];
+ int size = 0;
+- const char* error = '\0';
++ const char* error = "";
+
+ if (!stream->read(pcm, BUFFERSIZE, &size, &error)) {
+ GfError("OpenALMusicPlayer: Stream read error: %s\n", error);