Adds partial support for Debian GNU/kFreeBSD, based on patch by vincent. Refs #1322.

This was SVN commit r11781.
This commit is contained in:
historic_bruno 2012-05-07 01:53:35 +00:00
parent 1674a7503f
commit 37a5bedb81
3 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
#if defined(__linux__)
#define PLATFORM_LINUX (1)
#define PLATFORM_STRING "linux"
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#elif defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__)
#define PLATFORM_BSD (1)
#define PLATFORM_STRING "bsd"
#elif defined(__APPLE__) && defined(__MACH__)

View File

@ -66,7 +66,7 @@
# define OS_MACOSX 0
#endif
// BSD
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__FreeBSD_kernel__)
# define OS_BSD 1
#else
# define OS_BSD 0

View File

@ -37,7 +37,7 @@
#undef DEBUG
#if defined(__FreeBSD__)
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
// Fix undefined PF_INET on FreeBSD
#include <sys/socket.h>
#endif