diff --git a/components/newlib/newlib/port/syscall.c b/components/newlib/newlib/port/syscall.c index 60f8d5db..c82fc6c9 100644 --- a/components/newlib/newlib/port/syscall.c +++ b/components/newlib/newlib/port/syscall.c @@ -17,6 +17,7 @@ #include #include #include +#include #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; +}