summaryrefslogtreecommitdiff
path: root/tools/ci/scripts/patchsdl1.sh
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2018-11-24 23:23:14 +0300
committerAndrei Karas <akaras@inbox.ru>2018-11-24 23:23:14 +0300
commite384b234da9822197fab3eee665fdd2bceced08f (patch)
treed936ef10a421076b80eea9a1edcf95e740958879 /tools/ci/scripts/patchsdl1.sh
parentda0d45775996118858b918b4e308d25ebc0ba62a (diff)
downloadmv-e384b234da9822197fab3eee665fdd2bceced08f.tar.gz
mv-e384b234da9822197fab3eee665fdd2bceced08f.tar.bz2
mv-e384b234da9822197fab3eee665fdd2bceced08f.tar.xz
mv-e384b234da9822197fab3eee665fdd2bceced08f.zip
Add workaround for compilation warning in SDL 1.2 with new Mesa.
Diffstat (limited to 'tools/ci/scripts/patchsdl1.sh')
-rwxr-xr-xtools/ci/scripts/patchsdl1.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/ci/scripts/patchsdl1.sh b/tools/ci/scripts/patchsdl1.sh
new file mode 100755
index 000000000..b97e12bbd
--- /dev/null
+++ b/tools/ci/scripts/patchsdl1.sh
@@ -0,0 +1,4 @@
+#!/bin/bash
+
+# Fix compilation warning
+sed -i 's|#define GL_GLEXT_VERSION 29|#ifndef GL_GLEXT_VERSION\n#define GL_GLEXT_VERSION 29\n#endif|' /usr/include/SDL/SDL_opengl.h