Trying to compile Seafile client on WIndows

I’m trying to compile seafile client on Windows, but there aren’t many information about it.
I’m using Windows 10 (64 bit) and Cygwin 3.1.4
I’m trying to compile the seafile component, which is required to compile the client but I’ve encountered these errors during the make operation:

/usr/include/w32api/psdk_inc/_ip_types.h:25:8: error: redefinition of ‘struct hostent’
struct hostent {
^~~~~~~
In file included from /usr/include/event2/util.h:63:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/netdb.h:75:8: note: originally defined here
struct hostent {
^~~~~~~
In file included from /usr/include/w32api/winsock2.h:57:0,
from /usr/include/event2/util.h:67,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/psdk_inc/_ip_types.h:33:8: error: redefinition of ‘struct netent’
struct netent {
^~~~~~
In file included from /usr/include/event2/util.h:63:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/netdb.h:89:8: note: originally defined here
struct netent {
^~~~~~
In file included from /usr/include/w32api/winsock2.h:57:0,
from /usr/include/event2/util.h:67,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/psdk_inc/_ip_types.h:40:8: error: redefinition of ‘struct servent’
struct servent {
^~~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:45:10: note: originally defined here
struct servent *getservbyname (const char *__name, const char *__proto);
^~~~~~~
In file included from /usr/include/w32api/winsock2.h:57:0,
from /usr/include/event2/util.h:67,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/psdk_inc/_ip_types.h:52:8: error: redefinition of ‘struct protoent’
struct protoent {
^~~~~~~~
In file included from /usr/include/event2/util.h:63:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/netdb.h:103:8: note: originally defined here
struct protoent
^~~~~~~~
In file included from /usr/include/w32api/winsock2.h:57:0,
from /usr/include/event2/util.h:67,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/psdk_inc/_ip_types.h:63:8: error: redefinition of ‘struct linger’
struct linger {
^~~~~~
In file included from /usr/include/sys/socket.h:13:0,
from /usr/include/netdb.h:63,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/cygwin/socket.h:52:8: note: originally defined here
struct linger {
^~~~~~
In file included from /usr/include/w32api/winsock2.h:57:0,
from /usr/include/event2/util.h:67,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/psdk_inc/_ip_types.h:70:8: error: redefinition of ‘struct sockaddr’
struct sockaddr {
^~~~~~~~
In file included from /usr/include/sys/socket.h:13:0,
from /usr/include/netdb.h:63,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/cygwin/socket.h:27:8: note: originally defined here
struct sockaddr {
^~~~~~~~
In file included from /usr/include/w32api/winsock2.h:57:0,
from /usr/include/event2/util.h:67,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/psdk_inc/_ip_types.h:75:8: error: redefinition of ‘struct sockaddr_in’
struct sockaddr_in {
^~~~~~~~~~~
In file included from /usr/include/netinet/in.h:12:0,
from /usr/include/netdb.h:65,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/cygwin/in.h:196:8: note: originally defined here
struct sockaddr_in
^~~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:269:10: error: redefinition of ‘struct sockaddr_storage’
struct sockaddr_storage {
^~~~~~~~~~~~~~~~
In file included from /usr/include/sys/socket.h:13:0,
from /usr/include/netdb.h:63,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/cygwin/socket.h:39:8: note: originally defined here
struct sockaddr_storage {
^~~~~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1003:37: error: conflicting types for ‘accept’
WINSOCK_API_LINKAGE SOCKET WSAAPI accept(SOCKET s,struct sockaddr *addr,int *addrlen);
^~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:21:7: note: previous declaration of ‘accept’ was here
int accept (int, struct sockaddr *__peer, socklen_t *);
^~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1004:34: error: conflicting types for ‘bind’
WINSOCK_API_LINKAGE int WSAAPI bind(SOCKET s,const struct sockaddr *name,int namelen);
^~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:23:7: note: previous declaration of ‘bind’ was here
int bind (int, const struct sockaddr *__my_addr, socklen_t __addrlen);
^~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1006:34: error: conflicting types for ‘connect’
WINSOCK_API_LINKAGE int WSAAPI connect(SOCKET s,const struct sockaddr *name,int namelen);
^~~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:24:7: note: previous declaration of ‘connect’ was here
int connect (int, const struct sockaddr *, socklen_t);
^~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1008:34: error: conflicting types for ‘getpeername’
WINSOCK_API_LINKAGE int WSAAPI getpeername(SOCKET s,struct sockaddr *name,int *namelen);
^~~~~~~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:25:7: note: previous declaration of ‘getpeername’ was here
int getpeername (int, struct sockaddr *__peer, socklen_t *);
^~~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1009:34: error: conflicting types for ‘getsockname’
WINSOCK_API_LINKAGE int WSAAPI getsockname(SOCKET s,struct sockaddr *name,int *namelen);
^~~~~~~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:26:7: note: previous declaration of ‘getsockname’ was here
int getsockname (int, struct sockaddr *__addr, socklen_t *);
^~~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1010:34: error: conflicting types for ‘getsockopt’
WINSOCK_API_LINKAGE int WSAAPI getsockopt(SOCKET s,int level,int optname,char *optval,int *optlen);
^~~~~~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:38:7: note: previous declaration of ‘getsockopt’ was here
int getsockopt (int __s, int __level, int __optname, void *__optval,
^~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1017:34: error: conflicting types for ‘listen’
WINSOCK_API_LINKAGE int WSAAPI listen(SOCKET s,int backlog);
^~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:27:7: note: previous declaration of ‘listen’ was here
int listen (int, int __n);
^~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1022:34: error: conflicting types for ‘recv’
WINSOCK_API_LINKAGE int WSAAPI recv(SOCKET s,char *buf,int len,int flags);
^~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:28:11: note: previous declaration of ‘recv’ was here
ssize_t recv (int, void *__buff, size_t __len, int __flags);
^~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1023:34: error: conflicting types for ‘recvfrom’
WINSOCK_API_LINKAGE int WSAAPI recvfrom(SOCKET s,char *buf,int len,int flags,struct sockaddr *from,int *fromlen);
^~~~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:29:11: note: previous declaration of ‘recvfrom’ was here
ssize_t recvfrom (int, void *__buff, size_t __len, int __flags,
^~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1025:34: error: conflicting types for ‘select’
WINSOCK_API_LINKAGE int WSAAPI select(int nfds,fd_set *readfds,fd_set *writefds,fd_set *exceptfds,const PTIMEVAL timeout);
^~~~~~
In file included from /usr/include/sys/types.h:50:0,
from /usr/include/sys/unistd.h:12,
from /usr/include/unistd.h:4,
from …/common/common.h:10,
from wt-monitor-win32.c:2:
/usr/include/sys/select.h:62:5: note: previous declaration of ‘select’ was here
int select __P ((int __n, fd_set *__readfds, fd_set *__writefds,
^~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1027:34: error: conflicting types for ‘send’
WINSOCK_API_LINKAGE int WSAAPI send(SOCKET s,const char *buf,int len,int flags);
^~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:32:11: note: previous declaration of ‘send’ was here
ssize_t send (int, const void *__buff, size_t __len, int __flags);
^~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1028:34: error: conflicting types for ‘sendto’
WINSOCK_API_LINKAGE int WSAAPI sendto(SOCKET s,const char *buf,int len,int flags,const struct sockaddr *to,int tolen);
^~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:34:11: note: previous declaration of ‘sendto’ was here
ssize_t sendto (int, const void *, size_t __len, int __flags,
^~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1029:34: error: conflicting types for ‘setsockopt’
WINSOCK_API_LINKAGE int WSAAPI setsockopt(SOCKET s,int level,int optname,const char *optval,int optlen);
^~~~~~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:36:7: note: previous declaration of ‘setsockopt’ was here
int setsockopt (int __s, int __level, int __optname, const void *optval,
^~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1030:34: error: conflicting types for ‘shutdown’
WINSOCK_API_LINKAGE int WSAAPI shutdown(SOCKET s,int how);
^~~~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:40:7: note: previous declaration of ‘shutdown’ was here
int shutdown (int, int);
^~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1031:37: error: conflicting types for ‘socket’
WINSOCK_API_LINKAGE SOCKET WSAAPI socket(int af,int type,int protocol);
^~~~~~
In file included from /usr/include/netdb.h:63:0,
from /usr/include/event2/util.h:63,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/sys/socket.h:41:7: note: previous declaration of ‘socket’ was here
int socket (int __family, int __type, int __protocol);
^~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1032:46: error: conflicting types for ‘gethostbyaddr’
WINSOCK_API_LINKAGE struct hostent *WSAAPI gethostbyaddr(const char *addr,int len,int type);
^~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:63:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/netdb.h:227:17: note: previous declaration of ‘gethostbyaddr’ was here
struct hostent *gethostbyaddr (const void *, socklen_t, int);
^~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1033:46: error: conflicting types for ‘gethostbyname’
WINSOCK_API_LINKAGE struct hostent *WSAAPI gethostbyname(const char *name);
^~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:63:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/netdb.h:228:17: note: previous declaration of ‘gethostbyname’ was here
struct hostent *gethostbyname (const char *);
^~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1034:34: error: conflicting types for ‘gethostname’
WINSOCK_API_LINKAGE int WSAAPI gethostname(char *name,int namelen);
^~~~~~~~~~~
In file included from /usr/include/unistd.h:4:0,
from …/common/common.h:10,
from wt-monitor-win32.c:2:
/usr/include/sys/unistd.h:300:6: note: previous declaration of ‘gethostname’ was here
int gethostname (char *__name, size_t __len);
^~~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1035:46: error: conflicting types for ‘getservbyport’
WINSOCK_API_LINKAGE struct servent *WSAAPI getservbyport(int port,const char *proto);
^~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:63:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/netdb.h:240:17: note: previous declaration of ‘getservbyport’ was here
struct servent *getservbyport (int, const char *);
^~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1036:46: error: conflicting types for ‘getservbyname’
WINSOCK_API_LINKAGE struct servent *WSAAPI getservbyname(const char *name,const char *proto);
^~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:63:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/netdb.h:239:17: note: previous declaration of ‘getservbyname’ was here
struct servent *getservbyname (const char *, const char *);
^~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1037:47: error: conflicting types for ‘getprotobynumber’
WINSOCK_API_LINKAGE struct protoent *WSAAPI getprotobynumber(int number);
^~~~~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:63:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/netdb.h:237:18: note: previous declaration of ‘getprotobynumber’ was here
struct protoent *getprotobynumber (int);
^~~~~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:67:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/w32api/winsock2.h:1038:47: error: conflicting types for ‘getprotobyname’
WINSOCK_API_LINKAGE struct protoent *WSAAPI getprotobyname(const char *name);
^~~~~~~~~~~~~~
In file included from /usr/include/event2/util.h:63:0,
from /usr/include/evutil.h:37,
from /usr/include/event.h:57,
from cevent.h:14,
from seafile-session.h:7,
from wt-monitor-win32.c:15:
/usr/include/netdb.h:236:18: note: previous declaration of ‘getprotobyname’ was here
struct protoent *getprotobyname (const char *);
^~~~~~~~~~~~~~
In file included from cevent.h:21:0,
from seafile-session.h:7,
from wt-monitor-win32.c:15:

The problem seems to be the libevent component. Could it be because of the version I’m using?

I also get this error:
wt-monitor-win32.c:487:18: error: storage size of ‘st’ isn’t known
SeafStat st;

I’d really appreciate some help on this. I’ve been trying to compile the client on Windows for 3 days but I still haven’t managed to do it. Thank you.

1 Like

Can anybody help me on this one? I’m really struggling with this problem