Mercurial > hg > xemacs-beta
diff src/redisplay-x.c @ 197:acd284d43ca1 r20-3b25
Import from CVS: tag r20-3b25
author | cvs |
---|---|
date | Mon, 13 Aug 2007 10:00:02 +0200 |
parents | 3d6bfa290dbd |
children | 41ff10fd062f |
line wrap: on
line diff
--- a/src/redisplay-x.c Mon Aug 13 09:59:07 2007 +0200 +++ b/src/redisplay-x.c Mon Aug 13 10:00:02 2007 +0200 @@ -2225,9 +2225,7 @@ XFillRectangle (dpy, w, gc, 0, 0, width, height); XSync (dpy, False); -#ifdef HAVE_POLL - poll (0, 0, 100); -#else /* !HAVE_POLL */ +#ifdef HAVE_SELECT { int usecs = 100000; struct timeval tv; @@ -2236,7 +2234,13 @@ /* I'm sure someone is going to complain about this... */ select (0, 0, 0, 0, &tv); } -#endif /* !HAVE_POLL */ +#else +#ifdef HAVE_POLL + poll (0, 0, 100); +#else /* !HAVE_POLL */ + bite me +#endif /* HAVE_POLL */ +#endif /* HAVE_SELECT */ XFillRectangle (dpy, w, gc, 0, 0, width, height); XSync (dpy, False);