It doesn't like mixing declaration and code.

-0-
-- 
Due to circumstances beyond your control, you are master of your fate
and captain of your soul.
>From 0de74793cc76df11bf4a87ebc73681d4c5b9cc7c Mon Sep 17 00:00:00 2001
From: Matthieu Herrb <[email protected]>
Date: Sun, 18 Jan 2009 00:03:44 +0100
Subject: [PATCH] gcc 2.95 build fix.

---
 src/glx/x11/glxcmds.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/glx/x11/glxcmds.c b/src/glx/x11/glxcmds.c
index 1d373ed..a864e21 100644
--- a/src/glx/x11/glxcmds.c
+++ b/src/glx/x11/glxcmds.c
@@ -864,6 +864,9 @@ PUBLIC void glXSwapBuffers(Display *dpy, GLXDrawable 
drawable)
     GLXContext gc;
     GLXContextTag tag;
     CARD8 opcode;
+#ifndef USE_XCB
+    xGLXSwapBuffersReq *req;
+#endif
 #ifdef GLX_DIRECT_RENDERING
     __GLXDRIdrawable *pdraw = GetGLXDRIDrawable(dpy, drawable, NULL);
 
@@ -896,8 +899,6 @@ PUBLIC void glXSwapBuffers(Display *dpy, GLXDrawable 
drawable)
     xcb_glx_swap_buffers(c, tag, drawable);
     xcb_flush(c);
 #else
-    xGLXSwapBuffersReq *req;
-
     /* Send the glXSwapBuffers request */
     LockDisplay(dpy);
     GetReq(GLXSwapBuffers,req);
-- 
1.6.0.5

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Mesa3d-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to