[Mesa-dev] [PATCH 17/28] auxiliary/vl: attempt to fix X11-less builds

Emil Velikov emil.l.velikov at gmail.com
Thu Dec 8 20:00:06 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Use the proper guard around the include and use void * instead of
Display *.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/gallium/auxiliary/vl/vl_winsys.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/auxiliary/vl/vl_winsys.h b/src/gallium/auxiliary/vl/vl_winsys.h
index 26db9f2..f6ee36c 100644
--- a/src/gallium/auxiliary/vl/vl_winsys.h
+++ b/src/gallium/auxiliary/vl/vl_winsys.h
@@ -32,7 +32,9 @@
 #ifndef vl_winsys_h
 #define vl_winsys_h
 
+#if defined(HAVE_PLATFORM_X11)
 #include <X11/Xlib.h>
+#endif
 #include "pipe/p_defines.h"
 #include "pipe/p_format.h"
 
-- 
2.10.2



More information about the mesa-dev mailing list