We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d276f2c commit 522c413Copy full SHA for 522c413
src/base/detect.h
@@ -32,6 +32,13 @@
32
#define CONF_PLATFORM_STRING "freebsd"
33
#endif
34
35
+#if defined(__NetBSD__)
36
+ #define CONF_FAMILY_UNIX 1
37
+ #define CONF_FAMILY_STRING "unix"
38
+ #define CONF_PLATFORM_NETBSD 1
39
+ #define CONF_PLATFORM_STRING "netbsd"
40
+#endif
41
+
42
#if defined(__OpenBSD__)
43
#define CONF_FAMILY_UNIX 1
44
#define CONF_FAMILY_STRING "unix"
@@ -82,7 +89,7 @@
82
89
83
90
/* use gcc endianness definitions when available */
84
91
#if defined(__GNUC__) && !defined(__APPLE__) && !defined(__MINGW32__) && !defined(__sun)
85
- #if defined(__FreeBSD__) || defined(__OpenBSD__)
92
+ #if defined(__FreeBSD__) || defined(__OpenBSD__) || defined(__NetBSD__)
86
93
#include <sys/endian.h>
87
94
#else
88
95
#include <endian.h>
0 commit comments