]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
easy_lock.h: use __asm__ instead of asm to fix build
authorvvb2060 <vvb2060@gmail.com>
Mon, 27 Jun 2022 19:48:43 +0000 (03:48 +0800)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 27 Jun 2022 22:02:26 +0000 (00:02 +0200)
Closes #9056

lib/easy_lock.h

index 1f54289ceb2d3b2ebe70a963cc7d48387a327de1..07c85c5ffdd1968c2d401240de4fc4da9bf909c8 100644 (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