DO NOT REPLY TO THIS MESSAGE.  INSTEAD, POST ANY RESPONSES TO THE LINK BELOW.

[STR New]

Link: http://www.fltk.org/str.php?L2324
Version: 1.3-current





Link: http://www.fltk.org/str.php?L2324
Version: 1.3-current
diff -Naur fltk-1.3.x-r7398.patched/src/Fl_x.cxx fltk-1.3.x-r7398/src/Fl_x.cxx
--- fltk-1.3.x-r7398.patched/src/Fl_x.cxx       2010-03-25 10:04:43.000000000 
-0400
+++ fltk-1.3.x-r7398/src/Fl_x.cxx       2010-04-02 19:44:23.000000000 -0400
@@ -136,7 +136,9 @@
 
 void Fl::remove_fd(int n, int events) {
   int i,j;
+# if !USE_POLL
   maxfd = -1; // recalculate maxfd on the fly
+# endif
   for (i=j=0; i<nfds; i++) {
 #  if USE_POLL
     if (pollfds[i].fd == n) {
@@ -150,8 +152,8 @@
       if (!e) continue; // if no events left, delete this fd
       fd[i].events = e;
     }
-#  endif
     if (fd[i].fd > maxfd) maxfd = fd[i].fd;
+#  endif
     // move it down in the array if necessary:
     if (j<i) {
       fd[j] = fd[i];
_______________________________________________
fltk-bugs mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-bugs

Reply via email to