From: mirabilos <t.glaser@tarent.de>
To: alsa-devel@alsa-project.org
Cc: 870396@bugs.debian.org
Subject: [alsa-devel] [PATCH 1/3] pcm: ensure amd64-specific asm code is not used on x32
Date: Thu, 23 Jan 2020 21:17:34 +0100 [thread overview]
Message-ID: <202001232032.00NKWMar023632@herc.mirbsd.org> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2001232123580.6327@tglase-nb.lan.tarent.de>
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(-)
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
--
2.25.0
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
https://mailman.alsa-project.org/mailman/listinfo/alsa-devel
next prev parent reply other threads:[~2020-01-23 20:33 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-23 20:28 [alsa-devel] [PATCH] fix segfault on x32, 64-bit time_t-related format strings Thorsten Glaser
2019-11-20 20:51 ` Thorsten Glaser
2019-11-21 8:11 ` Takashi Iwai
2019-11-21 14:37 ` Thorsten Glaser
2019-11-22 13:30 ` Takashi Iwai
[not found] ` <157133531799.6063.9249463816269134459.reportbug@tglase.lan.tarent.de>
2020-01-23 20:17 ` mirabilos [this message]
2020-01-23 20:20 ` [alsa-devel] [PATCH 2/3] pcm: explicitly cast time types to types printf can handle mirabilos
2020-01-23 20:21 ` [alsa-devel] [PATCH 3/3] test: " mirabilos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202001232032.00NKWMar023632@herc.mirbsd.org \
--to=t.glaser@tarent.de \
--cc=870396@bugs.debian.org \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).