diff options
author | dholland <dholland@pkgsrc.org> | 2018-06-03 23:53:02 +0000 |
---|---|---|
committer | dholland <dholland@pkgsrc.org> | 2018-06-03 23:53:02 +0000 |
commit | 96a045099e82b437689a907a6a32e89c67698c78 (patch) | |
tree | df2a8155ceb1c950327fb776c0dccc4a4020aa19 /graphics/gtkglext/patches/patch-gdk_gdkglshapes.c | |
parent | 372160341d277f8b05c3a163566a30d8afa818cc (diff) | |
download | pkgsrc-96a045099e82b437689a907a6a32e89c67698c78.tar.gz |
Work around name conflict with index(). Not sure why this suddenly
broke the build... is this 2018 or 1988?
Diffstat (limited to 'graphics/gtkglext/patches/patch-gdk_gdkglshapes.c')
-rw-r--r-- | graphics/gtkglext/patches/patch-gdk_gdkglshapes.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/graphics/gtkglext/patches/patch-gdk_gdkglshapes.c b/graphics/gtkglext/patches/patch-gdk_gdkglshapes.c new file mode 100644 index 00000000000..0b27f66c802 --- /dev/null +++ b/graphics/gtkglext/patches/patch-gdk_gdkglshapes.c @@ -0,0 +1,18 @@ +$NetBSD: patch-gdk_gdkglshapes.c,v 1.1 2018/06/03 23:53:03 dholland Exp $ + +Work around namespace conflict with archaic index() in strings.h. +No idea why this broke suddenly in 2018, as opposed to, say, twenty +years ago. + +--- gdk/gdkglshapes.c~ 2004-02-20 09:38:12.000000000 +0000 ++++ gdk/gdkglshapes.c +@@ -31,6 +31,9 @@ + #include <GL/gl.h> + #include <GL/glu.h> + ++/* workaround for namespace pollution */ ++#define index index_ ++ + /* + * The following code is imported from GLUT. + */ |