mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-07-15 08:32:42 +08:00
Merge branch 'feature/reduce_stdc_api_compiling_error' into 'master'
newlib: add function "_getpid_r" to pass compiling See merge request sdk/ESP8266_RTOS_SDK!1213
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user