From c7417f793f192993f2c6a2a1634ba1ec481d311e Mon Sep 17 00:00:00 2001 From: ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> Date: Tue, 27 Aug 2024 18:32:47 +0200 Subject: [PATCH] Restore building with option FLTK_USE_POLL --- src/drivers/Unix/Fl_Unix_Screen_Driver.H | 2 ++ src/drivers/Unix/Fl_Unix_Screen_Driver.cxx | 2 ++ 2 files changed, 4 insertions(+) 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;