emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

emacs-29 bb885928d73: Fix NetBSD build --with-sound


From: Eli Zaretskii
Subject: emacs-29 bb885928d73: Fix NetBSD build --with-sound
Date: Thu, 20 Jul 2023 12:09:54 -0400 (EDT)

branch: emacs-29
commit bb885928d73111d2b9c31ff94b71fe18f3506bb4
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Fix NetBSD build --with-sound
    
    * src/sound.c (alsa_write): Use ESTRPIPE only if defined.
    (Bug#64698)
---
 src/sound.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/sound.c b/src/sound.c
index 145100cd433..ac29fc1aa1e 100644
--- a/src/sound.c
+++ b/src/sound.c
@@ -1147,6 +1147,7 @@ alsa_write (struct sound_device *sd, const char *buffer, 
ptrdiff_t nbytes)
                 alsa_sound_perror ("Can't recover from underrun, prepare 
failed",
                                    err);
             }
+#ifdef ESTRPIPE
           else if (err == -ESTRPIPE)
             {
               while ((err = snd_pcm_resume (p->handle)) == -EAGAIN)
@@ -1160,6 +1161,7 @@ alsa_write (struct sound_device *sd, const char *buffer, 
ptrdiff_t nbytes)
                                        err);
                 }
             }
+#endif
           else
             alsa_sound_perror ("Error writing to sound device", err);
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]