summaryrefslogtreecommitdiff
path: root/pkg/alsa-lib/patch/0003-Don-t-use-inline-asm-on-non-GNU-compilers.patch
blob: 0b837aeaf4cad385e5a2e23f736b22713d3bbc27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
From 613de00de55805f1c27b40ad14aae8cc2b81f7eb Mon Sep 17 00:00:00 2001
From: Michael Forney <mforney@mforney.org>
Date: Wed, 3 Jul 2019 18:27:09 -0700
Subject: [PATCH] Don't use inline asm on non-GNU compilers

---
 include/local.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/local.h b/include/local.h
index 512e4455..a314468b 100644
--- a/include/local.h
+++ b/include/local.h
@@ -290,7 +290,7 @@ extern snd_lib_error_handler_t snd_err_msg;
 
 #define ASM_NAME(name) __SYMBOL_PREFIX name
 
-#ifdef HAVE_GNU_LD
+#if defined(HAVE_GNU_LD) && defined(__GNUC__)
 # ifdef HAVE_ELF
 
 /* We want the .gnu.warning.SYMBOL section to be unallocated.  */
-- 
2.44.0