Sun Jun 3 23:53:03 2018 UTC ()
Work around name conflict with index(). Not sure why this suddenly
broke the build... is this 2018 or 1988?


(dholland)
diff -r1.10 -r1.11 pkgsrc/graphics/gtkglext/distinfo
diff -r0 -r1.1 pkgsrc/graphics/gtkglext/patches/patch-gdk_gdkglshapes.c

cvs diff -r1.10 -r1.11 pkgsrc/graphics/gtkglext/distinfo (expand / switch to unified diff)

--- pkgsrc/graphics/gtkglext/distinfo 2015/11/03 21:34:02 1.10
+++ pkgsrc/graphics/gtkglext/distinfo 2018/06/03 23:53:02 1.11
@@ -1,7 +1,8 @@ @@ -1,7 +1,8 @@
1$NetBSD: distinfo,v 1.10 2015/11/03 21:34:02 agc Exp $ 1$NetBSD: distinfo,v 1.11 2018/06/03 23:53:02 dholland Exp $
2 2
3SHA1 (gtkglext-1.2.0.tar.bz2) = d84c9472af3438fbce84189613e5370b97d9d1e7 3SHA1 (gtkglext-1.2.0.tar.bz2) = d84c9472af3438fbce84189613e5370b97d9d1e7
4RMD160 (gtkglext-1.2.0.tar.bz2) = c731df1b4f0bf2ccb213fe489d2c2d08910d4c77 4RMD160 (gtkglext-1.2.0.tar.bz2) = c731df1b4f0bf2ccb213fe489d2c2d08910d4c77
5SHA512 (gtkglext-1.2.0.tar.bz2) = c5452b7594195da3c1428dc3021a041d70bb8079a514b7310fe7b66f638748ad2399adead36047b52b60b033757581e72f0532c0301e033019bf909f7365071d 5SHA512 (gtkglext-1.2.0.tar.bz2) = c5452b7594195da3c1428dc3021a041d70bb8079a514b7310fe7b66f638748ad2399adead36047b52b60b033757581e72f0532c0301e033019bf909f7365071d
6Size (gtkglext-1.2.0.tar.bz2) = 703821 bytes 6Size (gtkglext-1.2.0.tar.bz2) = 703821 bytes
7SHA1 (patch-aa) = 7d84aed4255f90877088024bd6e3c48657a618aa 7SHA1 (patch-aa) = 7d84aed4255f90877088024bd6e3c48657a618aa
 8SHA1 (patch-gdk_gdkglshapes.c) = 44470b39c2cf9f7ab54298b71b0026040f06a482

File Added: pkgsrc/graphics/gtkglext/patches/patch-gdk_gdkglshapes.c
$NetBSD: patch-gdk_gdkglshapes.c,v 1.1 2018/06/03 23:53:03 dholland Exp $

Work around namespace conflict with archaic index() in strings.h.
No idea why this broke suddenly in 2018, as opposed to, say, twenty
years ago.

--- gdk/gdkglshapes.c~	2004-02-20 09:38:12.000000000 +0000
+++ gdk/gdkglshapes.c
@@ -31,6 +31,9 @@
 #include <GL/gl.h>
 #include <GL/glu.h>
 
+/* workaround for namespace pollution */
+#define index index_
+
 /* 
  * The following code is imported from GLUT.
  */