Include malloc.h instead of stdlib.h for mallinfo()

This change also removes the malloc.h inclusion in stdlib.h
to break the build if there are still users of mallinfo() with stdlib.h.
This commit is contained in:
YAMAMOTO Takashi 2020-06-15 15:02:25 +09:00 committed by patacongo
parent f1814dfca8
commit a607e6257f
4 changed files with 3 additions and 3 deletions

View File

@ -28,6 +28,7 @@
#include <nuttx/config.h>
#include <sys/types.h>
#include <malloc.h>
#include <stdbool.h>
#include <stdlib.h>

View File

@ -30,7 +30,6 @@
#include <sys/types.h>
#include <errno.h>
#include <malloc.h>
#include <stdint.h>
#include <limits.h>

View File

@ -39,7 +39,7 @@
#include <nuttx/config.h>
#include <stdlib.h>
#include <malloc.h>
#include <assert.h>
#include <debug.h>

View File

@ -24,7 +24,7 @@
#include <nuttx/config.h>
#include <stdlib.h>
#include <malloc.h>
#include <nuttx/mm/mm.h>