Fix Windows compilation.

This commit is contained in:
Jonathan Naylor
2020-09-20 14:07:42 +01:00
parent 6d6fcc7f93
commit b2ba671071
3 changed files with 2 additions and 3 deletions

View File

@@ -72,7 +72,7 @@
#include <unistd.h> #include <unistd.h>
#include <stdarg.h> #include <stdarg.h>
#else #else
#include <winsock.h> #include <ws2tcpip.h>
#endif #endif
#define BUFFER_MAX_LEN 128 #define BUFFER_MAX_LEN 128

View File

@@ -32,7 +32,6 @@
#include <arpa/inet.h> #include <arpa/inet.h>
#include <errno.h> #include <errno.h>
#else #else
#include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif #endif

View File

@@ -19,6 +19,6 @@
#if !defined(VERSION_H) #if !defined(VERSION_H)
#define VERSION_H #define VERSION_H
const char* VERSION = "20200906"; const char* VERSION = "20200920";
#endif #endif