diff options
Diffstat (limited to 'src/xselect.c')
-rw-r--r-- | src/xselect.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/xselect.c b/src/xselect.c index c57f51604b3..66812bda044 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -63,8 +63,11 @@ Lisp_Object Vx_sent_selection_hooks; */ #define MAX_SELECTION_QUANTUM 0xFFFFFF -#define SELECTION_QUANTUM(dpy) ((XMaxRequestSize (dpy) << 2) - 100) - +#ifdef HAVE_X11R4 +#define SELECTION_QUANTUM(dpy) ((XMaxRequestSize(dpy) << 2) - 100) +#else +#define SELECTION_QUANTUM(dpy) (((dpy)->max_request_size << 2) - 100) +#endif /* The timestamp of the last input event Emacs received from the X server. */ unsigned long last_event_timestamp; |