svn commit: r467110 - head/x11-toolkits/gtkglext/files

Koop Mast kwm at FreeBSD.org
Wed Apr 11 20:35:37 UTC 2018


Author: kwm
Date: Wed Apr 11 20:35:36 2018
New Revision: 467110
URL: https://svnweb.freebsd.org/changeset/ports/467110

Log:
  Fix the build by renaming a variable, which is a function in strings.h.
  
  Obtained from:	debian gtkglext package

Added:
  head/x11-toolkits/gtkglext/files/
  head/x11-toolkits/gtkglext/files/patch-gdk_gdkglshapes.c   (contents, props changed)

Added: head/x11-toolkits/gtkglext/files/patch-gdk_gdkglshapes.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/x11-toolkits/gtkglext/files/patch-gdk_gdkglshapes.c	Wed Apr 11 20:35:36 2018	(r467110)
@@ -0,0 +1,22 @@
+index() is a function in <strings.h>
+
+--- gdk/gdkglshapes.c.orig	2004-02-20 09:38:12 UTC
++++ gdk/gdkglshapes.c
+@@ -544,7 +544,7 @@ static GLfloat idata[12][3] =
+   {-Z, -X, 0}
+ };
+ 
+-static int index[20][3] =
++static int myindex[20][3] =
+ {
+   {0, 4, 1},
+   {0, 9, 4},
+@@ -574,7 +574,7 @@ icosahedron(GLenum shadeType)
+   int i;
+ 
+   for (i = 19; i >= 0; i--) {
+-    drawtriangle(i, idata, index, shadeType);
++    drawtriangle(i, idata, myindex, shadeType);
+   }
+ }
+ 


More information about the svn-ports-head mailing list