diff options
author | rillig <rillig@pkgsrc.org> | 2007-10-10 22:22:14 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2007-10-10 22:22:14 +0000 |
commit | e0a98c87913d59e5bb6565fb62f76895c1acda18 (patch) | |
tree | c4b5dd5d6d1b8c25a19517f569e5a013ee79a7c0 /graphics/freeglut | |
parent | 33e967f5437c5c43ecf6d899c5b67a007a0748df (diff) | |
download | pkgsrc-e0a98c87913d59e5bb6565fb62f76895c1acda18.tar.gz |
Fixed typecast around lvalue.
Diffstat (limited to 'graphics/freeglut')
-rw-r--r-- | graphics/freeglut/distinfo | 3 | ||||
-rw-r--r-- | graphics/freeglut/patches/patch-ab | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/graphics/freeglut/distinfo b/graphics/freeglut/distinfo index 9c663b617e3..dcfc6164cfa 100644 --- a/graphics/freeglut/distinfo +++ b/graphics/freeglut/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.3 2006/10/14 01:17:47 rillig Exp $ +$NetBSD: distinfo,v 1.4 2007/10/10 22:22:14 rillig Exp $ SHA1 (freeglut-2.2.0.tar.gz) = 87c762bd9653fe844f67e1944f1397061b590dc8 RMD160 (freeglut-2.2.0.tar.gz) = 854de841d634074aac0df1cd62c8ca236570419a Size (freeglut-2.2.0.tar.gz) = 384055 bytes SHA1 (patch-aa) = 94fbd8965fa42db9c6c57c2b4089c764f9e7bcc0 +SHA1 (patch-ab) = ec636c3684a2d64c1a7c47e1ff95651ce0061b30 diff --git a/graphics/freeglut/patches/patch-ab b/graphics/freeglut/patches/patch-ab new file mode 100644 index 00000000000..567a9a5c2ec --- /dev/null +++ b/graphics/freeglut/patches/patch-ab @@ -0,0 +1,15 @@ +$NetBSD: patch-ab,v 1.1 2007/10/10 22:22:14 rillig Exp $ + +lvalues are more complicated than rvalues. + +--- src/freeglut_internal.h.orig 2003-12-11 18:02:13.000000000 +0100 ++++ src/freeglut_internal.h 2007-10-11 00:20:38.000000000 +0200 +@@ -384,7 +384,7 @@ struct tagSFG_WindowState + * type. + */ + #define FETCH_WCB(window,cbname) \ +- ((FGCB ## cbname)((window).CallBacks[CB_ ## cbname])) ++ (*((FGCB ## cbname *)&((window).CallBacks[CB_ ## cbname]))) + + /* + * INVOKE_WCB() is used as: |