allegro4: fix FTBFS with newer mesa
This commit is contained in:
parent
716f5ee931
commit
339732d448
1 changed files with 28 additions and 0 deletions
28
srcpkgs/allegro4/patches/fix_building_with_newer_mesa.patch
Normal file
28
srcpkgs/allegro4/patches/fix_building_with_newer_mesa.patch
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
--- addons/allegrogl/include/alleggl.h
|
||||||
|
+++ addons/allegrogl/include/alleggl.h
|
||||||
|
@@ -62,10 +62,14 @@
|
||||||
|
|
||||||
|
/* HACK: Prevent both Mesa and SGI's broken headers from screwing us */
|
||||||
|
#define __glext_h_
|
||||||
|
+#define __gl_glext_h_
|
||||||
|
#define __glxext_h_
|
||||||
|
+#define __glx_glxext_h_
|
||||||
|
#include <GL/gl.h>
|
||||||
|
#undef __glext_h_
|
||||||
|
+#undef __gl_glext_h_
|
||||||
|
#undef __glxext_h_
|
||||||
|
+#undef __glx_glxext_h_
|
||||||
|
|
||||||
|
#endif /* ALLEGRO_MACOSX */
|
||||||
|
|
||||||
|
--- addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h
|
||||||
|
+++ addons/allegrogl/include/allegrogl/GLext/glx_ext_defs.h
|
||||||
|
@@ -1,6 +1,8 @@
|
||||||
|
/* HACK: Prevent both Mesa and SGI's broken headers from screwing us */
|
||||||
|
#define __glxext_h_
|
||||||
|
+#define __glx_glxext_h_
|
||||||
|
#include <GL/glx.h>
|
||||||
|
+#undef __glx_glxext_h_
|
||||||
|
#undef __glxext_h_
|
||||||
|
|
||||||
|
#ifndef GLX_VERSION_1_3
|
Loading…
Add table
Add a link
Reference in a new issue