aboutsummaryrefslogtreecommitdiffstats
path: root/extras/mini-os/include/xmalloc.h
diff options
context:
space:
mode:
Diffstat (limited to 'extras/mini-os/include/xmalloc.h')
-rw-r--r--extras/mini-os/include/xmalloc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/extras/mini-os/include/xmalloc.h b/extras/mini-os/include/xmalloc.h
index e168a84f88..13b242e21e 100644
--- a/extras/mini-os/include/xmalloc.h
+++ b/extras/mini-os/include/xmalloc.h
@@ -11,6 +11,8 @@
#else
+#include <limits.h>
+
#define DEFAULT_ALIGN (sizeof(unsigned long))
#define malloc(size) _xmalloc(size, DEFAULT_ALIGN)
#define free(ptr) xfree(ptr)