Begin getting it to compile on Windows again.

This commit is contained in:
Jonathan Naylor
2024-04-22 12:48:44 +01:00
parent 0e8788bdbe
commit ca2bff7e9e
10 changed files with 49 additions and 19 deletions

View File

@@ -33,6 +33,7 @@
#include <errno.h>
#else
#include <ws2tcpip.h>
#include <Winsock2.h>
#endif
enum IPMATCHTYPE {
@@ -69,10 +70,11 @@ private:
unsigned short m_localPort;
#if defined(_WIN32) || defined(_WIN64)
SOCKET m_fd;
int m_af;
#else
int m_fd;
#endif
sa_family_t m_af;
#endif
};
#endif