From 115cb729d8feedf2d33187a5789ebc7582cc3042 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Mon, 5 Dec 2016 22:22:44 +0000 Subject: st/omx: fix building against X11-less setups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The vl_*_screen_create API properly falls back to a NOP when we're building without specific platforms. So the only thing we need is to handle the lack of X11/Xlib.h and provide a dummy Display define. Cc: Cc: Christian König Signed-off-by: Emil Velikov --- src/gallium/state_trackers/omx/entrypoint.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/gallium/state_trackers/omx/entrypoint.c b/src/gallium/state_trackers/omx/entrypoint.c index 5afb58be3a3..fa2074ad1b7 100644 --- a/src/gallium/state_trackers/omx/entrypoint.c +++ b/src/gallium/state_trackers/omx/entrypoint.c @@ -35,7 +35,13 @@ #include #include +#if defined(HAVE_X11_PLATFORM) #include +#else +#define XOpenDisplay(x) NULL +#define XCloseDisplay(x) +#define Display void +#endif #include "os/os_thread.h" #include "util/u_memory.h" -- cgit v1.2.3