Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Apr 2018 20:35:36 +0000 (UTC)
From:      Koop Mast <kwm@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r467110 - head/x11-toolkits/gtkglext/files
Message-ID:  <201804112035.w3BKZaYV014330@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
+   }
+ }
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201804112035.w3BKZaYV014330>