mingw portability fixes: libtransmission #includes

This commit is contained in:
Charles Kerr 2008-01-10 19:52:56 +00:00
parent 6432363f64
commit 939f1541c6
2 changed files with 8 additions and 2 deletions

View File

@ -29,9 +29,10 @@
#include <sys/types.h>
#ifdef WIN32
#include <winsock2.h> /* inet_addr */
#else
#include <arpa/inet.h> /* inet_addr */
#ifndef WIN32
#include <netdb.h>
#include <fcntl.h>
#endif

View File

@ -14,8 +14,13 @@
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#ifdef WIN32
#include <winsock2.h>
#else
#include <netinet/in.h> /* struct in_addr */
#include <arpa/inet.h> /* inet_ntoa */
#endif
#include <event.h>