Check for symbol existence with #ifdef, not #if.

Needed since some other files only #define the symbol without a value.

Bump PKGREVISION since this changes an installed header file.
This commit is contained in:
wiz 2013-06-13 14:16:21 +00:00
parent 8ea7a5a158
commit 485d44ac56
2 changed files with 18 additions and 2 deletions

View file

@ -1,7 +1,7 @@
# $NetBSD: Makefile,v 1.92 2013/05/27 06:45:30 wiz Exp $
# $NetBSD: Makefile,v 1.93 2013/06/13 14:16:21 wiz Exp $
PKGNAME= MesaLib-${MESA_PKGVERSION}
PKGREVISION= 1
PKGREVISION= 2
COMMENT= Graphics library similar to SGI's OpenGL
CONFLICTS+= xf86driproto<2.0.4

View file

@ -0,0 +1,16 @@
$NetBSD: patch-include_GL_gl.h,v 1.1 2013/06/13 14:16:21 wiz Exp $
Check for symbol existence with #ifdef, not #if.
Needed since some other files only #define the symbol without a value.
--- include/GL/gl.h.orig 2011-11-23 01:09:52.000000000 +0000
+++ include/GL/gl.h
@@ -2094,7 +2094,7 @@ typedef void (APIENTRYP PFNGLMULTITEXCOO
-#if GL_ARB_shader_objects
+#ifdef GL_ARB_shader_objects
#ifndef GL_MESA_shader_debug
#define GL_MESA_shader_debug 1