aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/xmms-scivi
diff options
context:
space:
mode:
authoralepulver <alepulver@FreeBSD.org>2007-01-11 06:30:00 +0800
committeralepulver <alepulver@FreeBSD.org>2007-01-11 06:30:00 +0800
commit06785f8c4514cd381c51c75a560b1de72d2ef55d (patch)
tree829bc181c9a7224ef000dbf05a0c9ef897a744f0 /graphics/xmms-scivi
parent994a3b4311634aaf9c4a30f4c204ab4fa5004f61 (diff)
downloadfreebsd-ports-gnome-06785f8c4514cd381c51c75a560b1de72d2ef55d.tar.gz
freebsd-ports-gnome-06785f8c4514cd381c51c75a560b1de72d2ef55d.tar.zst
freebsd-ports-gnome-06785f8c4514cd381c51c75a560b1de72d2ef55d.zip
- Fix building with GCC 4.x.
Reported by: pointyhat
Diffstat (limited to 'graphics/xmms-scivi')
-rw-r--r--graphics/xmms-scivi/files/patch-src_glstuff.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/graphics/xmms-scivi/files/patch-src_glstuff.c b/graphics/xmms-scivi/files/patch-src_glstuff.c
new file mode 100644
index 000000000000..b5006875f0bb
--- /dev/null
+++ b/graphics/xmms-scivi/files/patch-src_glstuff.c
@@ -0,0 +1,21 @@
+--- src/glstuff.c.orig Wed Jan 10 19:23:52 2007
++++ src/glstuff.c Wed Jan 10 19:26:44 2007
+@@ -120,15 +120,15 @@
+
+ #define GET(_fatal_, _n_)\
+ if (!dontload){\
+- ((void*)(sc_##_n_)) = getaddr(#_n_); \
++ sc_##_n_ = (void *)getaddr(#_n_); \
+ if ((sc_##_n_) == NULL) { \
+- ((void*)(sc_##_n_)) = stub_func; \
++ sc_##_n_ = (void *)stub_func; \
+ eprintf("failed to get address of '%s'\n", #_n_);\
+ if ((_fatal_)) failed++;\
+ }\
+ /* eprintf("func %s @ %p\n", #_n_, sc_##_n_);*/ \
+ } else \
+- ((void*)(sc_##_n_)) = stub_func;
++ sc_##_n_ = (void *)stub_func;
+
+ getaddr = sc_glXGetProcAddress ?
+ ((void*)sc_glXGetProcAddress) :