diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-01-27 17:52:25 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 1999-01-27 17:52:25 +0000 |
| commit | 41195fbba6680eea46cdd0629aa35b3689f53014 (patch) | |
| tree | d1ffd93e10c898891a1c8e5ac1d955b944bb3880 /src | |
| parent | 660cc7cfcc984482944e4a65f1fcf17c01019dd7 (diff) | |
Updated to include <sys/select.h> as needed.
Removed IRIX select() prototype - not needed for IRIX 5.3 or higher.
git-svn-id: file:///fltk/svn/fltk/trunk@254 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/Fl_x.cxx | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx index c9e34e5ab..412437c6f 100644 --- a/src/Fl_x.cxx +++ b/src/Fl_x.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_x.cxx,v 1.21 1999/01/13 15:45:50 mike Exp $" +// "$Id: Fl_x.cxx,v 1.22 1999/01/27 17:52:25 mike Exp $" // // X specific code for the Fast Light Tool Kit (FLTK). // @@ -39,6 +39,9 @@ #include <string.h> #include <unistd.h> #include <sys/time.h> +#if HAVE_SYS_SELECT_H +# include <sys/select.h> +#endif /* HAVE_SYS_SELECT_H */ //////////////////////////////////////////////////////////////// // interface to poll/select call: @@ -51,10 +54,6 @@ struct pollfd {int fd; short events; short revents;}; #define POLLOUT 4 #define POLLERR 8 -#ifdef __sgi // fix bugs in Irix's select header: -extern "C" int select( int, fd_set *, fd_set *, fd_set *, struct timeval * ); -#endif - // // The following #define is only needed for HP-UX 9.x and earlier. 10.x // and beyond have the right stuff, and any good GCC distribution fixes @@ -819,5 +818,5 @@ void Fl_Window::make_current() { #endif // -// End of "$Id: Fl_x.cxx,v 1.21 1999/01/13 15:45:50 mike Exp $". +// End of "$Id: Fl_x.cxx,v 1.22 1999/01/27 17:52:25 mike Exp $". // |
