Fix the build by renaming a variable, which is a function in strings.h.
Obtained from: debian gtkglext package
This commit is contained in:
parent
6cf323c3e7
commit
13a02fb9a8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=467110
22
x11-toolkits/gtkglext/files/patch-gdk_gdkglshapes.c
Normal file
22
x11-toolkits/gtkglext/files/patch-gdk_gdkglshapes.c
Normal file
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user