[Mesa-dev] [PATCH] scons: Use X11 modules if X11 is available.

Vinson Lee vlee at freedesktop.org
Sat Dec 15 16:34:19 PST 2012


This patch fixes these build errors.
glxinit.c:18:25: error: GL/glxproto.h: No such file or directory
glxinit.c:19:26: error: GL/glxtokens.h: No such file or directory

Signed-off-by: Vinson Lee <vlee at freedesktop.org>
---
 src/gallium/state_trackers/egl/SConscript | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/gallium/state_trackers/egl/SConscript b/src/gallium/state_trackers/egl/SConscript
index 2f7ac7e..43b9dcb 100644
--- a/src/gallium/state_trackers/egl/SConscript
+++ b/src/gallium/state_trackers/egl/SConscript
@@ -27,6 +27,7 @@ else:
     if env['drm']:
         env.PkgUseModules('DRM')
     if env['x11']:
+        env.PkgUseModules('X11')
         env.Append(CPPDEFINES = ['HAVE_X11_BACKEND'])
         env.Prepend(CPPPATH = [
             '#/src/glx',
-- 
1.8.0.1



More information about the mesa-dev mailing list