Windows build fixes

This commit is contained in:
Joseph Henry
2017-11-06 16:19:55 -08:00
parent e0d4b84dd4
commit 614432907c
8 changed files with 56 additions and 21 deletions

View File

@@ -41,7 +41,9 @@
#include <sys/socket.h>
#endif
#if defined(__linux__) || defined(__APPLE__)
#include <sys/socket.h>
#endif
#include "SysUtils.h"
#include <stdint.h>

View File

@@ -30,10 +30,13 @@
* Misc utilities
*/
//#include "libztDebug.h"
#include "Utilities.h"
#if defined(__MINGW32__)
#if defined(__MINGW32__) || defined(__MINGW64__)
#include <WinSock2.h>
#include <stdint.h>
#include <string.h>
int inet_pton4(const char *src, void *dst)
{

View File

@@ -49,7 +49,6 @@
#include "libztDebug.h"
#include <string.h>
//void * memcpy(void * dst, const void * src, size_t n);
#ifdef __cplusplus
extern "C" {