summaryrefslogtreecommitdiff
path: root/src/drivers/Unix/Fl_Unix_Screen_Driver.H
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/Unix/Fl_Unix_Screen_Driver.H')
-rw-r--r--src/drivers/Unix/Fl_Unix_Screen_Driver.H5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/drivers/Unix/Fl_Unix_Screen_Driver.H b/src/drivers/Unix/Fl_Unix_Screen_Driver.H
index 36eb943f8..dd3f6e5c7 100644
--- a/src/drivers/Unix/Fl_Unix_Screen_Driver.H
+++ b/src/drivers/Unix/Fl_Unix_Screen_Driver.H
@@ -24,7 +24,6 @@
# if USE_POLL
# include <poll.h>
-static pollfd *pollfds = 0;
# else
# if HAVE_SYS_SELECT_H
@@ -52,7 +51,9 @@ static pollfd *pollfds = 0;
class Fl_Unix_Screen_Driver : public Fl_Screen_Driver {
public:
-# if !USE_POLL
+# if USE_POLL
+ static pollfd *pollfds;
+# else
static fd_set fdsets[3];
# endif
static int maxfd;