[BACK]Return to patch-src_modules_graphics_opengl_GLee.h CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / games / love09 / patches

File: [cvs.NetBSD.org] / pkgsrc / games / love09 / patches / patch-src_modules_graphics_opengl_GLee.h (download)

Revision 1.1, Sat Feb 6 14:27:41 2021 UTC (9 months, 3 weeks ago) by maya
Branch: MAIN
CVS Tags: pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, HEAD

love09: fix build with the mesa in netbsd-current
Add missing PLIST entry from my previous commit, oops.

$NetBSD: patch-src_modules_graphics_opengl_GLee.h,v 1.1 2021/02/06 14:27:41 maya Exp $

Newer mesa seems to use different include guards, add those as well.

--- src/modules/graphics/opengl/GLee.h.orig	2015-01-15 09:39:26.000000000 +0000
+++ src/modules/graphics/opengl/GLee.h
@@ -61,7 +61,9 @@
 	#include <OpenGL/gl.h>
 #else // GLX
 	#define __glext_h_  /* prevent glext.h from being included  */
+	#define __gl_glext_h_  /* prevent glext.h from being included - newer version */
 	#define __glxext_h_ /* prevent glxext.h from being included */
+	#define __glx_glxext_h_ /* prevent glxext.h from being included - newer version */
 	#define GLX_GLXEXT_PROTOTYPES
 	#include <GL/gl.h>
 	#include <GL/glx.h>