Non-X11 compile fix for generated code.
diff --git a/tsx11/ts_xf86vmode.c b/tsx11/ts_xf86vmode.c
index e4e7df5..5091df5 100644
--- a/tsx11/ts_xf86vmode.c
+++ b/tsx11/ts_xf86vmode.c
@@ -3,14 +3,19 @@
* This file was generated automatically by tools/make_X11wrappers
* DO NOT EDIT!
*/
+
+#include "config.h"
+
+#ifndef X_DISPLAY_MISSING
+
#include "wintypes.h"
#ifdef HAVE_LIBXXF86VM
#define XMD_H
#include <X11/Xlib.h>
#include <X11/extensions/xf86vmode.h>
-#include "x11drv.h"
#include "debug.h"
+#include "x11drv.h"
Bool TSXF86VidModeQueryVersion(Display*a0,int*a1,int*a2)
{
@@ -165,4 +170,7 @@
TRACE(x11, "Ret XF86VidModeSetViewPort\n");
return r;
}
-#endif
+
+#endif /* defined(HAVE_LIBXXF86VM) */
+
+#endif /* !defined(X_DISPLAY_MISSING) */