[1/3] pcm: ensure amd64-specific asm code is not used on x32
diff mbox series

Message ID 202001232032.00NKWMar023632@herc.mirbsd.org
State New
Headers show
Series
  • [1/3] pcm: ensure amd64-specific asm code is not used on x32
Related show

Commit Message

mirabilos Jan. 23, 2020, 8:17 p.m. UTC
This fixes segfaults on x32 systems.

Signed-off-by: mirabilos <tg@debian.org>
---
 src/pcm/pcm_dmix.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch
diff mbox series

diff --git a/src/pcm/pcm_dmix.c b/src/pcm/pcm_dmix.c
index d533f40c..407f644d 100644
--- a/src/pcm/pcm_dmix.c
+++ b/src/pcm/pcm_dmix.c
@@ -142,7 +142,7 @@  static void dmix_server_free(snd_pcm_direct_t *dmix)
 #include "pcm_dmix_generic.c"
 #if defined(__i386__)
 #include "pcm_dmix_i386.c"
-#elif defined(__x86_64__)
+#elif defined(__x86_64__) && !defined(__ILP32__)
 #include "pcm_dmix_x86_64.c"
 #else
 #ifndef DOC_HIDDEN