summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nuttx/mm/mm_memalign.c4
-rw-r--r--nuttx/syscall/syscall_stublookup.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/nuttx/mm/mm_memalign.c b/nuttx/mm/mm_memalign.c
index aa23cc9d6..03fccc7fd 100644
--- a/nuttx/mm/mm_memalign.c
+++ b/nuttx/mm/mm_memalign.c
@@ -83,7 +83,7 @@ FAR void *mm_memalign(FAR struct mm_heap_s *heap, size_t alignment,
if (alignment <= MM_MIN_CHUNK)
{
- return malloc(size);
+ return mm_malloc(heap, size);
}
/* Adjust the size to account for (1) the size of the allocated node, (2)
@@ -103,7 +103,7 @@ FAR void *mm_memalign(FAR struct mm_heap_s *heap, size_t alignment,
/* Then malloc that size */
- rawchunk = (size_t)malloc(allocsize);
+ rawchunk = (size_t)mm_malloc(heap, allocsize);
if (rawchunk == 0)
{
return NULL;
diff --git a/nuttx/syscall/syscall_stublookup.c b/nuttx/syscall/syscall_stublookup.c
index 436637c9e..65d7a3503 100644
--- a/nuttx/syscall/syscall_stublookup.c
+++ b/nuttx/syscall/syscall_stublookup.c
@@ -38,6 +38,8 @@
****************************************************************************/
#include <nuttx/config.h>
+
+#include <sys/types.h>
#include <syscall.h>
/* The content of this file is only meaningful during the kernel phase of