summaryrefslogtreecommitdiff
path: root/hw/kdrive/ephyr/XF86dri.c
diff options
context:
space:
mode:
Diffstat (limited to 'hw/kdrive/ephyr/XF86dri.c')
-rw-r--r--hw/kdrive/ephyr/XF86dri.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/kdrive/ephyr/XF86dri.c b/hw/kdrive/ephyr/XF86dri.c
index be65edf5b..31f796331 100644
--- a/hw/kdrive/ephyr/XF86dri.c
+++ b/hw/kdrive/ephyr/XF86dri.c
@@ -45,6 +45,16 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
#ifdef HAVE_CONFIG_H
#include <kdrive-config.h>
#endif
+/*
+ * including some server headers (like kdrive-config.h)
+ * might define the macro _XSERVER64
+ * on 64 bits machines. That macro must _NOT_ be defined for Xlib
+ * client code, otherwise bad things happen.
+ * So let's undef that macro if necessary.
+ */
+#ifdef _XSERVER64
+#undef _XSERVER64
+#endif
/* THIS IS NOT AN X CONSORTIUM STANDARD */