From: Emil Velikov Date: Mon, 5 Dec 2016 22:22:44 +0000 (+0000) Subject: st/omx: fix building against X11-less setups X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=115cb729d8feedf2d33187a5789ebc7582cc3042;p=mesa.git st/omx: fix building against X11-less setups 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 --- 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"