easy_lock.h: use __asm__ instead of asm to fix build

Closes #9056
This commit is contained in:
vvb2060 2022-06-28 03:48:43 +08:00 committed by Daniel Stenberg
parent aa34135e8f
commit 5a1a892565
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2

View file

@ -54,7 +54,7 @@ static inline void curl_simple_lock_lock(curl_simple_lock *lock)
#if defined(__i386__) || defined(__x86_64__)
__builtin_ia32_pause();
#elif defined(__aarch64__)
asm volatile("yield" ::: "memory");
__asm__ volatile("yield" ::: "memory");
#elif defined(HAVE_SCHED_YIELD)
sched_yield();
#endif