From 7c5bbf627ca31bee45ede5a4421ff1c5ada1186a Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Thu, 7 Jun 2018 09:11:47 -0700 Subject: [PATCH] Add missing __INTRODUCED_IN to pthread_attr_setinheritsched/pthread_attr_getinheritsched. Bug: https://github.com/android-ndk/ndk/issues/716 Test: N/A Change-Id: Ie49f96976f93b0f0d59796169e98918a9f69c0df --- libc/include/pthread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/include/pthread.h b/libc/include/pthread.h index 46898d629..3089adc16 100644 --- a/libc/include/pthread.h +++ b/libc/include/pthread.h @@ -97,7 +97,7 @@ int pthread_atfork(void (*__prepare)(void), void (*__parent)(void), void (*__chi int pthread_attr_destroy(pthread_attr_t* __attr); int pthread_attr_getdetachstate(const pthread_attr_t* __attr, int* __state); int pthread_attr_getguardsize(const pthread_attr_t* __attr, size_t* __size); -int pthread_attr_getinheritsched(const pthread_attr_t* __attr, int* __flag); +int pthread_attr_getinheritsched(const pthread_attr_t* __attr, int* __flag) __INTRODUCED_IN(28); int pthread_attr_getschedparam(const pthread_attr_t* __attr, struct sched_param* __param); int pthread_attr_getschedpolicy(const pthread_attr_t* __attr, int* __policy); int pthread_attr_getscope(const pthread_attr_t* __attr, int* __scope); @@ -106,7 +106,7 @@ int pthread_attr_getstacksize(const pthread_attr_t* __attr, size_t* __size); int pthread_attr_init(pthread_attr_t* __attr); int pthread_attr_setdetachstate(pthread_attr_t* __attr, int __state); int pthread_attr_setguardsize(pthread_attr_t* __attr, size_t __size); -int pthread_attr_setinheritsched(pthread_attr_t* __attr, int __flag); +int pthread_attr_setinheritsched(pthread_attr_t* __attr, int __flag) __INTRODUCED_IN(28); int pthread_attr_setschedparam(pthread_attr_t* __attr, const struct sched_param* __param); int pthread_attr_setschedpolicy(pthread_attr_t* __attr, int __policy); int pthread_attr_setscope(pthread_attr_t* __attr, int __scope);