]> git.alsa-project.org Git - alsa-lib.git/commitdiff
Portability fix for alsa-lib on mips
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Mar 2006 17:51:33 +0000 (17:51 +0000)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Mar 2006 17:51:33 +0000 (17:51 +0000)
From: Henryk Plötz <henryk@ploetzli.ch>

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.

include/alsa-symbols.h

index 900d9e6f1bb07b9f97cd28fa8db8868448f51330..6f10ebed1d41e1e8012e8bea8b737c8ea359f68e 100644 (file)
@@ -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)