Fixed off-by-one error in compute_shine_table(). Minor code clean-up
[mesa.git] / src / glut / glx / glut_event.c
index 2c46203e59d39bd8c788d1fc4b206457e8cf8a62..6d928af2ea3fd787716ba61b97e9107f21ab569a 100644 (file)
@@ -301,10 +301,17 @@ interruptibleXNextEvent(Display * dpy, XEvent * event)
       XNextEvent(dpy, event);
       return 1;
     }
+#ifndef VMS
+    /* the combination ConectionNumber-select is buggy on VMS. Sometimes it
+     * fails. This part of the code hangs the program on VMS7.2. But even
+     * without it the program seems to run correctly.
+     * Note that this is a bug in the VMS/DECWindows run-time-libraries.
+     * Compaq engeneering does not want or is not able to make a fix.
+     * (last sentence is a quotation from Compaq when I reported the
+     * problem January 2000) */
     FD_ZERO(&fds);
     FD_SET(__glutConnectionFD, &fds);
-    rc = select(__glutConnectionFD + 1, &fds,
-      NULL, NULL, NULL);
+    rc = select(__glutConnectionFD + 1, &fds, NULL, NULL, NULL);
     if (rc < 0) {
       if (errno == EINTR) {
         return 0;
@@ -312,6 +319,7 @@ interruptibleXNextEvent(Display * dpy, XEvent * event)
         __glutFatalError("select error.");
       }
     }
+#endif
   }
 }