Use winsock2.h, use ws2tcpip.h for socklen_t

This commit is contained in:
Erik Ekman 2009-03-07 00:00:58 +00:00 committed by Erik Ekman
parent bc18afcc83
commit 54195968c7
6 changed files with 6 additions and 5 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -22,6 +22,7 @@ typedef unsigned int in_addr_t;
#include <windows.h> #include <windows.h>
#include <windns.h> #include <windns.h>
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h>
#include <iphlpapi.h> #include <iphlpapi.h>
#define T_A DNS_TYPE_A #define T_A DNS_TYPE_A