From 44873df420d128972644ef3901c7d917ca3b7dd7 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Tue, 1 Nov 2016 15:13:47 +0100 Subject: Do not inline pthread_spin_lock_* to avoid future incompatibilities when changing the implementation. * include/pthread/pthread.h [!_LIBC] (pthread_spin_destroy, pthread_spin_init, pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Do not provide inline definition. --- include/pthread/pthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/pthread/pthread.h') diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h index 3aa6a93..350a673 100644 --- a/include/pthread/pthread.h +++ b/include/pthread/pthread.h @@ -511,7 +511,7 @@ extern int pthread_spin_trylock (pthread_spinlock_t *__lock) extern int pthread_spin_unlock (pthread_spinlock_t *__lock) __nonnull ((1)); -# ifdef __USE_EXTERN_INLINES +# if defined __USE_EXTERN_INLINES && defined _LIBC # include -- cgit v1.2.3