mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-09 10:16:33 +00:00
Include malloc.h instead of stdlib.h for mallinfo()
Adapt to the change in the main repo. mallinfo is meant to be API compatible with Linux, where it's provided by malloc.h. (I think the API actually originated with System V. I don't remember how it was there though. Anyway, I guess the compatibility with Linux is more important than System V these days.)
This commit is contained in:
parent
6fd57ba071
commit
faba0249c1
29 changed files with 29 additions and 2 deletions
|
|
@ -27,6 +27,7 @@
|
|||
#include <nuttx/init.h>
|
||||
#include <cstdio>
|
||||
#include <cstdlib>
|
||||
#include <malloc.h>
|
||||
#include <unistd.h>
|
||||
#include <debug.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue