]> granicus.if.org Git - esp-idf/commitdiff
pthread: add dummy implementation of pthread_setcancelstate
authorIvan Grokhotkov <ivan@espressif.com>
Fri, 8 Mar 2019 07:07:00 +0000 (15:07 +0800)
committerIvan Grokhotkov <ivan@espressif.com>
Wed, 10 Apr 2019 05:48:57 +0000 (13:48 +0800)
Used by new versions of newlib in stdio functions.

components/newlib/pthread.c

index 71e50d9e5afc2b1181ba81df2152fdaaaf8f642e..c917a22abe7fae8f32248ac80fd4818988642a06 100644 (file)
@@ -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;
+}