Fix compile error in Linux

This commit is contained in:
Kirigaya Kazuto 2018-07-05 02:32:09 +08:00
parent bae91fccce
commit 271fafd576
2 changed files with 2 additions and 1 deletions

View File

@ -243,7 +243,7 @@ public:
// <0: Error. // <0: Error.
// Set timeout to -1 for infinity waiting. // Set timeout to -1 for infinity waiting.
// Get data from events[i].events and events[i].data.fd // Get data from events[i].events and events[i].data.fd
int wait(epoll_event* events,int maxsize,int timeout); int wait(struct epoll_event* events,int maxsize,int timeout);
~epoll(); ~epoll();
private: private:

View File

@ -4,6 +4,7 @@
*/ */
#include "gsock_helper.h" #include "gsock_helper.h"
#include <cstring>
#ifdef _WIN32 #ifdef _WIN32
/// Using Win8.1 /// Using Win8.1