summaryrefslogtreecommitdiff
path: root/xdpyinfo.c
diff options
context:
space:
mode:
Diffstat (limited to 'xdpyinfo.c')
-rw-r--r--xdpyinfo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/xdpyinfo.c b/xdpyinfo.c
index 2bcc32c..dda04c7 100644
--- a/xdpyinfo.c
+++ b/xdpyinfo.c
@@ -144,6 +144,7 @@ in this Software without prior written authorization from The Open Group.
static char *ProgramName;
static Bool queryExtensions = False;
+#if defined(XF86MISC) || defined(XFreeXDGA)
static int
silent_errors(_X_UNUSED Display *dpy, _X_UNUSED XErrorEvent *ev)
{
@@ -151,6 +152,7 @@ silent_errors(_X_UNUSED Display *dpy, _X_UNUSED XErrorEvent *ev)
}
static int (*old_handler)(Display *, XErrorEvent *) = NULL;
+#endif
static int print_event_mask(char *buf, int lastcol, int indent, long mask);