50 lines
1.7 KiB
Diff
50 lines
1.7 KiB
Diff
|
Patch from upstream trunk for xextproto >= 7.0.99.1 compability.
|
||
|
|
||
|
--- configure.in
|
||
|
+++ configure.in
|
||
|
@@ -2192,6 +2192,11 @@
|
||
|
[ X_LIBS="-lXext $X_LIBS";
|
||
|
LINK_X_LIBS="-lXext $LINK_X_LIBS"],,$X_LIBS)
|
||
|
|
||
|
+ PKG_CHECK_MODULES(XEXT, [xextproto >= 7.0.99.1],
|
||
|
+ HAVE_XEXTPROTO_71="yes"; AC_DEFINE(HAVE_XEXTPROTO_71, 1, [xextproto 7.1 available]),
|
||
|
+ HAVE_XEXTPROTO_71="no")
|
||
|
+ AM_CONDITIONAL(HAVE_XEXTPROTO_71, [ test "$HAVE_XEXTPROTO_71" = "yes" ])
|
||
|
+
|
||
|
AC_MSG_CHECKING(for X11/extensions/Xvlib.h)
|
||
|
AC_TRY_LINK([#include <X11/Xlib.h>
|
||
|
#include <X11/extensions/Xvlib.h>],
|
||
|
@@ -2391,6 +2396,11 @@
|
||
|
AC_DEFINE(HAS_TRANSLATION,,[Enable internationalization support])
|
||
|
fi
|
||
|
|
||
|
+dnl Handle the xextproto conditinal for the systems that don't use it
|
||
|
+if test x"$is_unix_x11" != "xyes" -o x"$enable_sdlui" = "xyes" -o x"$enable_gnomeui" = "xyes"; then
|
||
|
+ AM_CONDITIONAL(HAVE_XEXTPROTO_71, false)
|
||
|
+fi
|
||
|
+
|
||
|
dnl CBM4Linux/OpenCBM
|
||
|
AC_MSG_CHECKING([for OpenCBM support])
|
||
|
if test x"$enable_realdevice" != "xno"; then
|
||
|
--- src/arch/unix/x11/xaw/x11video.c
|
||
|
+++ src/arch/unix/x11/xaw/x11video.c
|
||
|
@@ -56,6 +56,7 @@
|
||
|
#include "vice.h"
|
||
|
|
||
|
#include <X11/Xlib.h>
|
||
|
+#include <X11/Xlibint.h>
|
||
|
#include <X11/Xutil.h>
|
||
|
#include <X11/Intrinsic.h>
|
||
|
#include <X11/cursorfont.h>
|
||
|
@@ -95,6 +96,10 @@
|
||
|
#endif
|
||
|
|
||
|
#ifdef USE_MITSHM
|
||
|
+#ifdef HAVE_XEXTPROTO_71
|
||
|
+#include <X11/extensions/shmproto.h>
|
||
|
+#include <X11/extensions/XShm.h>
|
||
|
+#endif
|
||
|
extern int shmhandler(Display* display, XErrorEvent* err);
|
||
|
extern int mitshm_failed; /* will be set to true if XShmAttach() failed */
|
||
|
extern int shmmajor; /* major number of MITSHM error codes */
|