1
0
mirror of https://github.com/yarrick/iodine.git synced 2024-11-26 15:06:04 +03:00

Use winsock2.h, use ws2tcpip.h for socklen_t

This commit is contained in:
Erik Ekman 2009-03-07 00:00:58 +00:00
parent 1971df98ee
commit 416f914f9e
6 changed files with 6 additions and 5 deletions

View File

@ -28,7 +28,7 @@
#ifdef WINDOWS32
#include "windows.h"
#include <winsock.h>
#include <winsock2.h>
#else
#include <arpa/nameser.h>
#ifdef DARWIN

View File

@ -29,7 +29,7 @@
#ifdef WINDOWS32
#include "windows.h"
#include <winsock.h>
#include <winsock2.h>
#else
#include <arpa/nameser.h>
#ifdef DARWIN

View File

@ -20,7 +20,7 @@ link)
;;
cflags)
case $1 in
BeOS | windows32)
BeOS)
echo '-Dsocklen_t=int';
;;
esac

View File

@ -25,7 +25,7 @@
#include <fcntl.h>
#ifdef WINDOWS32
#include <winsock.h>
#include <winsock2.h>
#include <winioctl.h>
#include "windows.h"

View File

@ -25,7 +25,7 @@
#include <fcntl.h>
#ifdef WINDOWS32
#include <winsock.h>
#include <winsock2.h>
#else
#include <err.h>
#include <arpa/inet.h>

View File

@ -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