summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-01-23 16:51:56 +0100
committerHaru <haru@dotalux.com>2014-01-23 17:14:09 +0100
commite68d860dbaa6b1bcf8104463cd3001ae946b7d4e (patch)
tree38f6757fbc2d4ad34e89b3d48d5ed221a3125147 /src/common
parent22b7f90297184775ad94d8cb4806e8664c78d934 (diff)
downloadhercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.tar.gz
hercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.tar.bz2
hercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.tar.xz
hercules-e68d860dbaa6b1bcf8104463cd3001ae946b7d4e.zip
Compatibility fixes for NetBSD and Solaris
- Fixed some warnings in NetBSD (5.x and 6.x) and Solaris (11) Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/common')
-rw-r--r--src/common/cbasetypes.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h
index 120f4f861..977897506 100644
--- a/src/common/cbasetypes.h
+++ b/src/common/cbasetypes.h
@@ -42,6 +42,11 @@
#define __DARWIN__
#endif
+// Necessary for __NetBSD_Version__ (defined as VVRR00PP00) on NetBSD
+#ifdef __NETBSD__
+#include <sys/param.h>
+#endif // __NETBSD__
+
// 64bit OS
#if defined(_M_IA64) || defined(_M_X64) || defined(_WIN64) || defined(_LP64) || defined(_ILP64) || defined(__LP64__) || defined(__ppc64__)
#define __64BIT__