diff --git a/hw/kdrive/ephyr/hostx.c b/hw/kdrive/ephyr/hostx.c index 33dcccf8f..ff3565a72 100644 --- a/hw/kdrive/ephyr/hostx.c +++ b/hw/kdrive/ephyr/hostx.c @@ -37,6 +37,14 @@ #include #include +// workaround for name clash between Xlib and Xserver: +// GL might pull in Xlib.h (why ?), which is definining a type "GC", that's +// conflicting with Xserver's "GC" type. +#define GC XlibGC +#include +#include +#undef GC + #include "dix/input_priv.h" #include "hostx.h"