aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits
diff options
context:
space:
mode:
authorkwm <kwm@FreeBSD.org>2018-04-12 04:35:36 +0800
committerkwm <kwm@FreeBSD.org>2018-04-12 04:35:36 +0800
commitc0ab856a4293b44143b680fdebd17ff053ce8116 (patch)
treeab5450ca8ab5bac05bed816d8e9a42a6e75fee3f /x11-toolkits
parentca0d8d3ad8b0a57306db19803a030b4ab3c3b2c1 (diff)
downloadfreebsd-ports-gnome-c0ab856a4293b44143b680fdebd17ff053ce8116.tar.gz
freebsd-ports-gnome-c0ab856a4293b44143b680fdebd17ff053ce8116.tar.zst
freebsd-ports-gnome-c0ab856a4293b44143b680fdebd17ff053ce8116.zip
Fix the build by renaming a variable, which is a function in strings.h.
Obtained from: debian gtkglext package
Diffstat (limited to 'x11-toolkits')
-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);
+ }
+ }
+