From 7fc1aa30a5934d05609e668bb8f150b4c9cfc279 Mon Sep 17 00:00:00 2001 From: Keegan McAllister Date: Fri, 4 May 2012 23:42:41 -0400 Subject: [PATCH] Move dummy_fd_set into Select Now that we have select.cc. --- src/util/select.cc | 2 ++ src/util/select.h | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/util/select.cc b/src/util/select.cc index b1a925bed..84c36c7da 100644 --- a/src/util/select.cc +++ b/src/util/select.cc @@ -19,3 +19,5 @@ #include "select.h" Select *Select::instance = NULL; + +fd_set Select::dummy_fd_set; diff --git a/src/util/select.h b/src/util/select.h index 55c28530f..577595dd3 100644 --- a/src/util/select.h +++ b/src/util/select.h @@ -28,8 +28,6 @@ #include #include -static fd_set dummy_fd_set; - /* Convenience wrapper for select(2). */ class Select { public: @@ -102,6 +100,7 @@ class Select { private: int max_fd; + static fd_set dummy_fd_set; fd_set all_fds, read_fds, error_fds; };