From: Samuel Thibault Date: Mon, 17 Jan 2022 23:18:20 +0000 (+0000) Subject: htl: Fix build error in annexc X-Git-Tag: glibc-2.35~60 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f8b765bec44e6c464a7eabf80e58c6851ca15ac3;p=thirdparty%2Fglibc.git htl: Fix build error in annexc We were getting ../scripts/evaluate-test.sh posix/annexc $? true false > /usr/src/glibc-upstream/build/posix/annexc.test-result In file included from ../include/pthread.h:1, from :1: ../sysdeps/htl/include/pthread.h:7:62: error: missing binary operator before token "(" 7 | # if defined __USE_EXTERN_INLINES && defined _LIBC && !IS_IN (libsupport) | ^ --- diff --git a/sysdeps/htl/include/pthread.h b/sysdeps/htl/include/pthread.h index f040c2f9574..699fabfbc8c 100644 --- a/sysdeps/htl/include/pthread.h +++ b/sysdeps/htl/include/pthread.h @@ -4,8 +4,9 @@ # define ARCH_MIN_GUARD_SIZE 0 -# if defined __USE_EXTERN_INLINES && defined _LIBC && !IS_IN (libsupport) -# include +# if defined __USE_EXTERN_INLINES && defined _LIBC +# if !IS_IN (libsupport) +# include __extern_inline int pthread_spin_destroy (pthread_spinlock_t *__lock) @@ -36,6 +37,7 @@ pthread_spin_unlock (pthread_spinlock_t *__lock) { return __pthread_spin_unlock (__lock); } +# endif # endif #endif #endif