diff --git a/src/drivers/Unix/Fl_Unix_Screen_Driver.H b/src/drivers/Unix/Fl_Unix_Screen_Driver.H index 2b8a5a7ab..36eb943f8 100644 --- a/src/drivers/Unix/Fl_Unix_Screen_Driver.H +++ b/src/drivers/Unix/Fl_Unix_Screen_Driver.H @@ -52,7 +52,9 @@ static pollfd *pollfds = 0; class Fl_Unix_Screen_Driver : public Fl_Screen_Driver { public: +# if !USE_POLL static fd_set fdsets[3]; +# endif static int maxfd; static int nfds; static struct FD { diff --git a/src/drivers/Unix/Fl_Unix_Screen_Driver.cxx b/src/drivers/Unix/Fl_Unix_Screen_Driver.cxx index 18f936243..4988474cb 100644 --- a/src/drivers/Unix/Fl_Unix_Screen_Driver.cxx +++ b/src/drivers/Unix/Fl_Unix_Screen_Driver.cxx @@ -18,7 +18,9 @@ #include #include "Fl_Unix_Screen_Driver.H" +#if !USE_POLL fd_set Fl_Unix_Screen_Driver::fdsets[3]; +#endif int Fl_Unix_Screen_Driver::maxfd = 0; int Fl_Unix_Screen_Driver::nfds = 0; Fl_Unix_Screen_Driver::FD *Fl_Unix_Screen_Driver::fd = NULL;