]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/socketengines/socketengine_select.h
Minor documentation fix, spotted by Johannes13
[user/henk/code/inspircd.git] / include / socketengines / socketengine_select.h
index 90da22aa57e472a5d3cd58c58763e5359f8c3be8..91746b25228e8be6bc23fbaf8fa797a864798bfc 100644 (file)
 #include <vector>
 #include <string>
 #include <map>
+#ifndef WINDOWS
 #include <sys/select.h>
+#endif // WINDOWS
 #include "inspircd_config.h"
-#include "globals.h"
 #include "inspircd.h"
 #include "socketengine.h"
 
@@ -35,10 +36,11 @@ private:
        std::map<int,int> fds;
        /** List of writeable ones (WantWrite())
         */
-       bool writeable[MAX_DESCRIPTORS];
+       bool* writeable;
        /** The read set and write set, populated before each call to select().
         */
        fd_set wfdset, rfdset, errfdset;
+
 public:
        /** Create a new SelectEngine
         * @param Instance The creator of this object