mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
feat: add MinGW cross-compilation support for Windows builds on Linux (#2108)
This commit is contained in:
17
3rd/compat-mingw/sys/socket.h
Normal file
17
3rd/compat-mingw/sys/socket.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#pragma once
|
||||
|
||||
#define _WINSOCK_DEPRECATED_NO_WARNINGS
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
|
||||
#undef FD_SETSIZE
|
||||
#define FD_SETSIZE 1024
|
||||
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
#include <conio.h>
|
||||
|
||||
#include <ws2ipdef.h>
|
||||
#include <ws2tcpip.h>
|
||||
|
||||
#include "socket_poll.h"
|
||||
#include "socket_epoll.h"
|
||||
Reference in New Issue
Block a user