diff options
Diffstat (limited to 'nuttx/mm/mm_environment.h')
-rw-r--r-- | nuttx/mm/mm_environment.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/nuttx/mm/mm_environment.h b/nuttx/mm/mm_environment.h index 14476957d..8777323b0 100644 --- a/nuttx/mm/mm_environment.h +++ b/nuttx/mm/mm_environment.h @@ -54,6 +54,7 @@ # include <debug.h> # include <errno.h> # include <assert.h> +# include <nuttx/os_external.h> #else # include <sys/types.h> # include <string.h> @@ -70,6 +71,15 @@ #ifdef MM_TEST +/* Fake NuttX dependencies */ + +# define FAR /* Normally in compiler.h */ +# define CONFIG_MM_REGIONS 2 /* Normally in config.h */ +# define CONFIG_CAN_PASS_STRUCTS 1 /* Normally in config.h */ +# undef CONFIG_SMALL_MEMORY /* Normally in config.h */ + +extern void mm_addregion(FAR void *heapstart, size_t heapsize); + /* Use the real system errno */ # define mm_errno errno |