From: Ivan Grokhotkov Date: Fri, 8 Mar 2019 07:07:00 +0000 (+0800) Subject: pthread: add dummy implementation of pthread_setcancelstate X-Git-Tag: v4.0-beta1~419^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=31b4fc8eb85f3113d9a26a57c59c36310425da29;p=esp-idf pthread: add dummy implementation of pthread_setcancelstate Used by new versions of newlib in stdio functions. --- 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; +}