diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2013-12-11 16:49:48 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2013-12-11 16:49:48 -0600 |
commit | b7198ca71d2e619e1f149db6d259f919368316b5 (patch) | |
tree | 9121c609cc2ca4525840ac3e71980076195fdf7a /nuttx | |
parent | e376719b727dea88c81ad2111769ab8a596c6f84 (diff) | |
download | px4-nuttx-b7198ca71d2e619e1f149db6d259f919368316b5.tar.gz px4-nuttx-b7198ca71d2e619e1f149db6d259f919368316b5.tar.bz2 px4-nuttx-b7198ca71d2e619e1f149db6d259f919368316b5.zip |
Fix some kernel-mode compilation problems
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/mm/mm_memalign.c | 4 | ||||
-rw-r--r-- | nuttx/syscall/syscall_stublookup.c | 2 |
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 |