aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/sys/sunldi.h9
-rw-r--r--include/util/qsort.h8
2 files changed, 17 insertions, 0 deletions
diff --git a/include/sys/sunldi.h b/include/sys/sunldi.h
new file mode 100644
index 000000000..01e80b54f
--- /dev/null
+++ b/include/sys/sunldi.h
@@ -0,0 +1,9 @@
+#ifndef _SPL_SUNLDI_H
+#define _SPL_SUNLDI_H
+
+/* XXX: ALL TOTALLY BOGUS, JUST PLACE HOLDERS */
+typedef int ddi_devid_t;
+typedef int ldi_handle_t;
+typedef int ldi_ident_t;
+
+#endif /* SPL_SUNLDI_H */
diff --git a/include/util/qsort.h b/include/util/qsort.h
new file mode 100644
index 000000000..f7bb26847
--- /dev/null
+++ b/include/util/qsort.h
@@ -0,0 +1,8 @@
+#ifndef _SPL_QSORT_H
+#define _SPL_QSORT_H
+
+#include <linux/sort.h>
+
+#define qsort(base, num, size, cmp) sort(base, num, size, cmp, NULL)
+
+#endif /* SPL_QSORT_H */