libfreerdp-core: fix FreeBSD compilation

This commit is contained in:
Marc-André Moreau 2012-01-16 08:27:07 -05:00
parent f42b5f6a42
commit 42dfd2627b
2 changed files with 3 additions and 2 deletions

View File

@ -25,11 +25,12 @@
#ifndef _WIN32
#include <netdb.h>
#include <net/if.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include <netinet/in.h>
#include <net/if.h>
#else
#define close(_fd) closesocket(_fd)
#endif

View File

@ -27,12 +27,12 @@
#ifndef _WIN32
#include <netdb.h>
#include <net/if.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <net/if.h>
#ifdef __APPLE__
#ifndef TCP_KEEPIDLE