diff --git a/gsock.h b/gsock.h index 416ea49..24bec5f 100644 --- a/gsock.h +++ b/gsock.h @@ -243,7 +243,7 @@ public: // <0: Error. // Set timeout to -1 for infinity waiting. // 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(); private: diff --git a/gsock_helper.cpp b/gsock_helper.cpp index 97405a4..aac0f64 100644 --- a/gsock_helper.cpp +++ b/gsock_helper.cpp @@ -4,6 +4,7 @@ */ #include "gsock_helper.h" +#include #ifdef _WIN32 /// Using Win8.1