aboutsummaryrefslogtreecommitdiff
path: root/include/kpl
diff options
context:
space:
mode:
Diffstat (limited to 'include/kpl')
-rw-r--r--include/kpl/base.h2
-rw-r--r--include/kpl/tree.h4
2 files changed, 4 insertions, 2 deletions
diff --git a/include/kpl/base.h b/include/kpl/base.h
index 144fd51..9420a44 100644
--- a/include/kpl/base.h
+++ b/include/kpl/base.h
@@ -11,6 +11,7 @@
#include <stdbool.h>
#include <string.h>
#include <ctype.h>
+#include <limits.h>
#include <pthread.h>
#include <semaphore.h>
#include <fcntl.h>
@@ -19,6 +20,7 @@
#include <sys/ioctl.h>
#include <sys/mman.h>
#include <sys/uio.h>
+#include <sys/param.h>
#include <linux/fs.h>
#include <linux/io_uring.h>
// KPL includes
diff --git a/include/kpl/tree.h b/include/kpl/tree.h
index 8e52524..90de3a8 100644
--- a/include/kpl/tree.h
+++ b/include/kpl/tree.h
@@ -4,9 +4,9 @@
#pragma once
-// tree_duplicate is a linked stack
+// tree_duplicates is a linked stack
#define KPL_TREE_HEADER(STRUCT_NAME) \
- struct STRUCT_NAME *tree_left, *tree_right, *tree_duplicate; \
+ struct STRUCT_NAME *tree_left, *tree_right, *tree_duplicates; \
int32_t tree_height
/*