From 339732d448bc22c2d2efdf6ca3cb9ab07868c0bd Mon Sep 17 00:00:00 2001 From: q66 Date: Sun, 27 Jan 2019 03:09:25 +0100 Subject: [PATCH] allegro4: fix FTBFS with newer mesa --- .../fix_building_with_newer_mesa.patch | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 srcpkgs/allegro4/patches/fix_building_with_newer_mesa.patch diff --git a/srcpkgs/allegro4/patches/fix_building_with_newer_mesa.patch b/srcpkgs/allegro4/patches/fix_building_with_newer_mesa.patch new file mode 100644 index 00000000000..f62de1b07d6 --- /dev/null +++ b/srcpkgs/allegro4/patches/fix_building_with_newer_mesa.patch @@ -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 + #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 ++#undef __glx_glxext_h_ + #undef __glxext_h_ + + #ifndef GLX_VERSION_1_3