aboutsummaryrefslogtreecommitdiff
path: root/x11-toolkits/gtkglext
diff options
context:
space:
mode:
authorKoop Mast <kwm@FreeBSD.org>2018-04-11 20:35:36 +0000
committerKoop Mast <kwm@FreeBSD.org>2018-04-11 20:35:36 +0000
commit13a02fb9a8f705397efbdc596ef6e461d20daa1c (patch)
treeab5450ca8ab5bac05bed816d8e9a42a6e75fee3f /x11-toolkits/gtkglext
parent6cf323c3e7dee61df836ed6d8da7c83f3247f7fd (diff)
downloadports-13a02fb9a8f705397efbdc596ef6e461d20daa1c.tar.gz
ports-13a02fb9a8f705397efbdc596ef6e461d20daa1c.zip
Fix the build by renaming a variable, which is a function in strings.h.
Obtained from: debian gtkglext package
Notes
Notes: svn path=/head/; revision=467110
Diffstat (limited to 'x11-toolkits/gtkglext')
-rw-r--r--x11-toolkits/gtkglext/files/patch-gdk_gdkglshapes.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/x11-toolkits/gtkglext/files/patch-gdk_gdkglshapes.c b/x11-toolkits/gtkglext/files/patch-gdk_gdkglshapes.c
new file mode 100644
index 000000000000..c6b990256fdd
--- /dev/null
+++ b/x11-toolkits/gtkglext/files/patch-gdk_gdkglshapes.c
@@ -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);
+ }
+ }
+