Permalink
Browse files

support NetBSD

  • Loading branch information...
fstd authored and def- committed Nov 16, 2013
1 parent d276f2c commit 522c41330d1c931cc089312c331854c37fa26a86
Showing with 8 additions and 1 deletion.
  1. +8 −1 src/base/detect.h
@@ -32,6 +32,13 @@
#define CONF_PLATFORM_STRING "freebsd"
#endif
#if defined(__NetBSD__)
#define CONF_FAMILY_UNIX 1
#define CONF_FAMILY_STRING "unix"
#define CONF_PLATFORM_NETBSD 1
#define CONF_PLATFORM_STRING "netbsd"
#endif
#if defined(__OpenBSD__)
#define CONF_FAMILY_UNIX 1
#define CONF_FAMILY_STRING "unix"
@@ -82,7 +89,7 @@
/* use gcc endianness definitions when available */
#if defined(__GNUC__) && !defined(__APPLE__) && !defined(__MINGW32__) && !defined(__sun)
#if defined(__FreeBSD__) || defined(__OpenBSD__)
#if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
#include <sys/endian.h>
#else
#include <endian.h>

0 comments on commit 522c413

Please sign in to comment.