summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac2
-rw-r--r--src/Xdamage.c3
2 files changed, 3 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac
index 3f58b8d..b51a85d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -52,7 +52,7 @@ DAMAGEEXT_VERSION=[`echo $VERSION | sed 's/^\([0-9][0-9]*\.[0-9][0-9]*\).*$/\1/'
AC_SUBST(DAMAGEEXT_VERSION)
# Obtain compiler/linker options for dependencies
-PKG_CHECK_MODULES(XDAMAGE, [damageproto >= $DAMAGEEXT_VERSION] xfixes fixesproto xextproto x11)
+PKG_CHECK_MODULES(XDAMAGE, [damageproto >= $DAMAGEEXT_VERSION xfixes fixesproto xextproto x11 xproto >= 7.0.22])
AC_CONFIG_FILES([Makefile
src/Makefile
diff --git a/src/Xdamage.c b/src/Xdamage.c
index 6b131a4..61fe4e6 100644
--- a/src/Xdamage.c
+++ b/src/Xdamage.c
@@ -25,6 +25,7 @@
#include <config.h>
#endif
#include "xdamageint.h"
+#include <X11/Xfuncproto.h>
XDamageExtInfo XDamageExtensionInfo;
@@ -204,7 +205,7 @@ XDamageFindDisplay (Display *dpy)
}
static int
-XDamageCloseDisplay (Display *dpy, XExtCodes *codes)
+XDamageCloseDisplay (Display *dpy, _X_UNUSED XExtCodes *codes)
{
return XDamageExtRemoveDisplay (&XDamageExtensionInfo, dpy);
}