diff options
Diffstat (limited to 'zwgc/xselect.c')
-rw-r--r-- | zwgc/xselect.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/zwgc/xselect.c b/zwgc/xselect.c index 59ed16c..2d12b4b 100644 --- a/zwgc/xselect.c +++ b/zwgc/xselect.c @@ -12,8 +12,10 @@ * "mit-copyright.h". */ +#include <sysdep.h> + #if (!defined(lint) && !defined(SABER)) -static char rcsid_xselect_c[] = "$Id$"; +static const char rcsid_xselect_c[] = "$Id$"; #endif #include <zephyr/mit-copyright.h> @@ -21,7 +23,8 @@ static char rcsid_xselect_c[] = "$Id$"; /* xselect.c - ICCCM compliant cut-and-paste */ /* also includes some other ICCCMisms, such as the WM_PROTOCOL handling */ -#include <stdio.h> +#ifndef X_DISPLAY_MISSING + #include <X11/Xlib.h> #include <X11/Xproto.h> #include <X11/Xatom.h> @@ -204,3 +207,6 @@ void xselGiveUpOwnership(dpy,w) ownership_end=ownership_start; /* Is this right? what should I use? */ } + +#endif /* X_DISPLAY_MISSING */ + |