From: Eli Zaretskii Date: Thu, 20 Jul 2023 16:09:42 +0000 (+0300) Subject: Fix NetBSD build --with-sound X-Git-Tag: emacs-29.1-rc1~14 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bb885928d73111d2b9c31ff94b71fe18f3506bb4;p=emacs.git Fix NetBSD build --with-sound * src/sound.c (alsa_write): Use ESTRPIPE only if defined. (Bug#64698) --- 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);