summaryrefslogtreecommitdiff
path: root/db1-ast/include/db.h
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2004-12-14 23:36:30 +0000
committerMark Spencer <markster@digium.com>2004-12-14 23:36:30 +0000
commit9d40b8ee8045660d58281553e34b7f45406951c0 (patch)
tree48694f38698e4ead3840305333816193c7fcd8a0 /db1-ast/include/db.h
parent0f205bb07903a70272e8ae2403afe20ceb06cedc (diff)
Merge slimey's Solaris compatibility (with small mods) (bug #2740)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4446 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'db1-ast/include/db.h')
-rwxr-xr-xdb1-ast/include/db.h14
1 files changed, 12 insertions, 2 deletions
diff --git a/db1-ast/include/db.h b/db1-ast/include/db.h
index d1258d2a6..a58724bdd 100755
--- a/db1-ast/include/db.h
+++ b/db1-ast/include/db.h
@@ -45,6 +45,10 @@
#include <compat.h>
#endif
+#ifdef SOLARIS
+#include "solaris-compat/compat.h"
+#endif
+
#define RET_ERROR -1 /* Return values. */
#define RET_SUCCESS 0
#define RET_SPECIAL 1
@@ -53,10 +57,10 @@
#define __BIT_TYPES_DEFINED__
#if (!defined(__FreeBSD__) && !defined(__NetBSD__) && !defined(__APPLE__))
typedef __signed char int8_t;
-typedef unsigned char u_int8_t;
typedef short int16_t;
-typedef unsigned short u_int16_t;
typedef int int32_t;
+typedef unsigned char u_int8_t;
+typedef unsigned short u_int16_t;
typedef unsigned int u_int32_t;
#ifdef WE_DONT_NEED_QUADS
typedef long long int64_t;
@@ -65,6 +69,12 @@ typedef unsigned long long u_int64_t;
#endif /* __FreeBSD__ */
#endif
+#ifdef SOLARIS
+#define __P(p) p
+#define __BEGIN_DECLS
+#define __END_DECLS
+#endif
+
#define MAX_PAGE_NUMBER 0xffffffff /* >= # of pages in a file */
typedef u_int32_t pgno_t;
#define MAX_PAGE_OFFSET 65535 /* >= # of bytes in a page */