From 4a086a380994f17b266cfb190f913e5a83d4dd0c Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Mon, 5 Apr 2010 19:11:49 +0000 Subject: Fixed max. fd calculation, if USE_POLL is enabled (STR #2324). This could maybe be removed completely, but anyway... git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7431 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_x.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index c66f71455..aa046d757 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -136,7 +136,9 @@ void Fl::add_fd(int n, void (*cb)(int, void*), void* v) { 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 maxfd) maxfd = fd[i].fd; +# endif // move it down in the array if necessary: if (j