Windows changes

This commit is contained in:
Luca Deri
2022-10-06 11:58:16 +02:00
parent c4fb2a590e
commit e4dcec560e
6 changed files with 31 additions and 6 deletions
+1 -1
View File
@@ -24,7 +24,7 @@
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#ifndef WIN32
#if !defined(WIN32) && !defined(_MSC_VER)
#include <unistd.h>
#else
#define __SIZEOF_LONG__ 4
+1 -1
View File
@@ -1,6 +1,6 @@
#include <stdint.h>
#ifndef WIN32
#if !defined(WIN32) && !defined(_MSC_VER)
#include <unistd.h>
#endif
#include <string.h>
+1 -1
View File
@@ -48,7 +48,7 @@
#include <stdlib.h> /* free, atol, calloc */
#include <string.h> /* memcpy, strchr, strlen */
#include <sys/types.h> /* BSD: for inet_addr */
#ifndef WIN32
#if !defined(WIN32) && !defined(_MSC_VER)
#include <sys/socket.h> /* BSD, Linux: for inet_addr */
#include <netinet/in.h> /* BSD, Linux: for inet_addr */
#include <arpa/inet.h> /* BSD, Linux, Solaris: for inet_addr */
+1 -1
View File
@@ -35,7 +35,7 @@
This file is used to implement the strptime API call that is missing on Windows
*/
#ifdef WIN32
#if defined(WIN32) || defined(_MSC_VER)
#include "ndpi_main.h"