From 271fafd576d7795cb9cac86347c829d10d5bcd3a Mon Sep 17 00:00:00 2001 From: Kiritow <1362050620@qq.com> Date: Thu, 5 Jul 2018 02:32:09 +0800 Subject: [PATCH] Fix compile error in Linux --- gsock.h | 2 +- gsock_helper.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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