defines for building on Hurd and BSD kernels

This commit is contained in:
Alberto Luaces
2016-05-31 12:58:57 +01:00
committed by Robert Osfield
parent 37258df59c
commit 68baf15806
5 changed files with 14 additions and 4 deletions

View File

@@ -45,6 +45,8 @@
#include <net/soioctl.h>
#elif defined(__CYGWIN__)
#include <unistd.h>
#elif defined (__GNU__)
#include <unistd.h>
#elif defined(__sun)
#include <unistd.h>
#include <sys/sockio.h>

View File

@@ -122,7 +122,7 @@ void Receiver::sync( void )
return;
}
#if defined(__linux) || defined(__FreeBSD__) || defined( __APPLE__ )
#if defined(__linux) || defined(__FreeBSD__) || defined( __APPLE__ ) || defined(__FreeBSD_kernel__) || defined(__GNU__)
socklen_t size;
#else
int size;