mirror of
https://github.com/yarrick/iodine.git
synced 2024-11-08 02:19:18 +02:00
Use winsock2.h, use ws2tcpip.h for socklen_t
This commit is contained in:
parent
1971df98ee
commit
416f914f9e
|
@ -28,7 +28,7 @@
|
|||
|
||||
#ifdef WINDOWS32
|
||||
#include "windows.h"
|
||||
#include <winsock.h>
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <arpa/nameser.h>
|
||||
#ifdef DARWIN
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
#ifdef WINDOWS32
|
||||
#include "windows.h"
|
||||
#include <winsock.h>
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <arpa/nameser.h>
|
||||
#ifdef DARWIN
|
||||
|
|
|
@ -20,7 +20,7 @@ link)
|
|||
;;
|
||||
cflags)
|
||||
case $1 in
|
||||
BeOS | windows32)
|
||||
BeOS)
|
||||
echo '-Dsocklen_t=int';
|
||||
;;
|
||||
esac
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#ifdef WINDOWS32
|
||||
#include <winsock.h>
|
||||
#include <winsock2.h>
|
||||
#include <winioctl.h>
|
||||
#include "windows.h"
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
#include <fcntl.h>
|
||||
|
||||
#ifdef WINDOWS32
|
||||
#include <winsock.h>
|
||||
#include <winsock2.h>
|
||||
#else
|
||||
#include <err.h>
|
||||
#include <arpa/inet.h>
|
||||
|
|
|
@ -22,6 +22,7 @@ typedef unsigned int in_addr_t;
|
|||
#include <windows.h>
|
||||
#include <windns.h>
|
||||
#include <winsock2.h>
|
||||
#include <ws2tcpip.h>
|
||||
#include <iphlpapi.h>
|
||||
|
||||
#define T_A DNS_TYPE_A
|
||||
|
|
Loading…
Reference in New Issue