summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Harsch <mike@harschsystems.com>2012-10-23 10:00:52 -0600
committerMike Harsch <mike@harschsystems.com>2012-10-23 10:07:24 -0600
commit409d5bb7bccf367bbd96d0a74494c0451a8f66d3 (patch)
treefcf74a64cfd06290f0c69305676ac6fb5eb460b7
parent07e76f7a7df8ad4c6f572f1e7b5d850d5b9bddab (diff)
downloadlibnvpair-409d5bb7bccf367bbd96d0a74494c0451a8f66d3.tar.gz
define non-standard types
-rw-r--r--libnvpair.c2
-rw-r--r--nvpair.h9
2 files changed, 10 insertions, 1 deletions
diff --git a/libnvpair.c b/libnvpair.c
index c2e5a1b..9c951c5 100644
--- a/libnvpair.c
+++ b/libnvpair.c
@@ -27,7 +27,7 @@
#include <strings.h>
#include <libintl.h>
#include <sys/types.h>
-#include <sys/inttypes.h>
+#include <inttypes.h>
#include <stdarg.h>
#include <note.h>
#include "libnvpair.h"
diff --git a/nvpair.h b/nvpair.h
index 5c62f1d..6abd3e5 100644
--- a/nvpair.h
+++ b/nvpair.h
@@ -30,6 +30,7 @@
#include <sys/time.h>
#include <sys/errno.h>
#include <stdarg.h>
+#include <inttypes.h>
#if defined(_KERNEL) && !defined(_BOOT)
#include <sys/kmem.h>
@@ -39,6 +40,14 @@
#define TEXT_DOMAIN "SYS_TEST"
#endif
+typedef unsigned int uint_t;
+typedef unsigned char uchar_t;
+typedef long long longlong_t;
+typedef longlong_t hrtime_t;
+typedef unsigned long ulong_t;
+typedef unsigned long long u_longlong_t;
+typedef enum { B_FALSE, B_TRUE } boolean_t;
+
#ifdef __cplusplus
extern "C" {
#endif