Skip to content

Commit

Permalink
support NetBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
fstd authored and def- committed Sep 23, 2015
1 parent d276f2c commit 522c413
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/base/detect.h
Expand Up @@ -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"
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 522c413

Please sign in to comment.