scons: Also define USE_XSHM for the glx/xlib state tracker build.
authorMichel Dänzer <daenzer@vmware.com>
Mon, 9 Mar 2009 16:39:14 +0000 (17:39 +0100)
committerMichel Dänzer <daenzer@vmware.com>
Mon, 9 Mar 2009 16:39:14 +0000 (17:39 +0100)
Fixes an inconsisten definition of struct xmesa_buffer between there and
winsys/xlib, resulting in a crash in XPutImage.

src/gallium/state_trackers/glx/xlib/SConscript

index 01641e90e4710231ffeb7bfc0ffc33a821c375a4..0dbe34139724d98692fb88081ca360eeae149009 100644 (file)
@@ -14,6 +14,8 @@ if env['platform'] == 'linux' \
         '#/src/mesa/main',
     ])
 
+    env.Append(CPPDEFINES = ['USE_XSHM'])
+
     st_xlib = env.ConvenienceLibrary(
        target = 'st_xlib',
        source = [ 'glxapi.c',