projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
39873d6
)
Fix NetBSD build --with-sound
author
Eli Zaretskii
<eliz@gnu.org>
Thu, 20 Jul 2023 16:09:42 +0000
(19:09 +0300)
committer
Eli Zaretskii
<eliz@gnu.org>
Thu, 20 Jul 2023 16:09:42 +0000
(19:09 +0300)
* src/sound.c (alsa_write): Use ESTRPIPE only if defined.
(Bug#64698)
src/sound.c
patch
|
blob
|
history
diff --git
a/src/sound.c
b/src/sound.c
index 145100cd4334b22129a8107e03002d7c2b4e64d9..ac29fc1aa1e2eedac9acfa17b4dbe25d972a1c4d 100644
(file)
--- 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);