From 31b4fc8eb85f3113d9a26a57c59c36310425da29 Mon Sep 17 00:00:00 2001 From: Ivan Grokhotkov Date: Fri, 8 Mar 2019 15:07:00 +0800 Subject: [PATCH] pthread: add dummy implementation of pthread_setcancelstate Used by new versions of newlib in stdio functions. --- components/newlib/pthread.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/newlib/pthread.c b/components/newlib/pthread.c index 71e50d9e5a..c917a22abe 100644 --- a/components/newlib/pthread.c +++ b/components/newlib/pthread.c @@ -8,3 +8,8 @@ int pthread_condattr_setclock(pthread_condattr_t *attr, clockid_t clock_id) ESP_LOGW(TAG, "%s: not yet supported!", __FUNCTION__); return 0; } + +int pthread_setcancelstate(int state, int *oldstate) +{ + return 0; +} -- 2.40.0