diff --git a/porting/liteos_m/kernel/include/stdlib.h b/porting/liteos_m/kernel/include/stdlib.h index d292fb0a8dcf58af1d9799b39db8e102096821e2..434ba64954468f6343e172519a35b6a5ae57cb75 100644 --- a/porting/liteos_m/kernel/include/stdlib.h +++ b/porting/liteos_m/kernel/include/stdlib.h @@ -44,6 +44,7 @@ void *calloc (size_t, size_t); void *realloc (void *, size_t); void free (void *); void *aligned_alloc(size_t, size_t); +void *zalloc(size_t size); _Noreturn void abort (void); int atexit (void (*) (void)); diff --git a/porting/liteos_m/kernel/include/string.h b/porting/liteos_m/kernel/include/string.h index 8d9190d53920288374fa5a0a6be27771821c20ec..2bbfbd7c4eef9061c99e1e19ed60f03fcc65bdd0 100644 --- a/porting/liteos_m/kernel/include/string.h +++ b/porting/liteos_m/kernel/include/string.h @@ -98,7 +98,7 @@ void *memmem(const void *, size_t, const void *, size_t); void *memrchr(const void *, int, size_t); void *mempcpy(void *, const void *, size_t); #ifndef __cplusplus -char *basename(); +char *basename(void); #endif #endif diff --git a/porting/liteos_m/kernel/src/misc/realpath.c b/porting/liteos_m/kernel/src/misc/realpath.c index 3a916b8b2a20d78bf76fdb4f13bd46f5e5e74b95..c15dbe9c42b19bd16860bd647dffdecb2926e111 100755 --- a/porting/liteos_m/kernel/src/misc/realpath.c +++ b/porting/liteos_m/kernel/src/misc/realpath.c @@ -35,6 +35,7 @@ #include #include #include +#include /* * LiteOS-M file system uses abs path