feat(newlib): add function "_getpid_r" to pass compiling

This commit is contained in:
Dong Heng
2019-12-04 14:56:46 +08:00
parent aed79e96f1
commit 4d866c93f8

View File

@ -17,6 +17,7 @@
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <sys/errno.h>
#include "esp_libc.h"
#include "FreeRTOS.h"
@ -177,3 +178,9 @@ void *_sbrk_r(struct _reent *r, ptrdiff_t incr)
{
abort();
}
int _getpid_r(struct _reent *r)
{
__errno_r(r) = ENOSYS;
return -1;
}