From: Takashi Iwai Date: Fri, 3 Mar 2006 17:51:33 +0000 (+0000) Subject: Portability fix for alsa-lib on mips X-Git-Tag: v1.0.11rc4~19 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=46c67fe07060f12af3a9adbc346a9467b4b16a4f;p=alsa-lib.git Portability fix for alsa-lib on mips From: Henryk Plötz I recently had problems building alsa-lib 1.0.10 on mips (for my Netgear WGT634U). Turned out the problem was in include/alsa-symbols.h were there was __asm__ code that wouldn't work with the mips assembler. Attached is a patch that makes this work again. --- diff --git a/include/alsa-symbols.h b/include/alsa-symbols.h index 900d9e6f..6f10ebed 100644 --- a/include/alsa-symbols.h +++ b/include/alsa-symbols.h @@ -57,7 +57,7 @@ __asm__ (".set " #name "," #real); \ __asm__ (".set ." #name ",." #real) #else -#ifdef __alpha__ +#if defined(__alpha__) || defined(__mips__) #define use_default_symbol_version(real, name, version) \ __asm__ (".weak " #name); \ __asm__ (#name " = " #real)