summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-11-01 15:13:47 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2016-11-01 15:22:30 +0100
commit44873df420d128972644ef3901c7d917ca3b7dd7 (patch)
tree5fa2f779439ed53129f418c3e19f7f9dbb6adc97
parent79e9d2b78ec0747a94731d45e0e5149269e96159 (diff)
Do not inline pthread_spin_lock_*glibc-2.23-hurd+libpthread-20161218
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.
-rw-r--r--include/pthread/pthread.h2
1 files changed, 1 insertions, 1 deletions
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 <bits/spin-lock-inline.h>