sndio: backport patch for sndioctl.

Fixes piped output.
This commit is contained in:
Érico Rolim 2020-09-10 11:33:51 -03:00 committed by Érico Nogueira Rolim
parent cac887840b
commit cfe947a204
2 changed files with 13 additions and 1 deletions

View File

@ -0,0 +1,12 @@
diff --git a/sndioctl/sndioctl.c b/sndioctl/sndioctl.c
index 4c4a85a..71ae298 100644
--- sndioctl/sndioctl.c
+++ sndioctl/sndioctl.c
@@ -1014,6 +1014,7 @@ main(int argc, char **argv)
perror("malloc");
exit(1);
}
for (;;) {
+ fflush(stdout);
nfds = sioctl_pollfd(hdl, pfds, POLLIN);
if (nfds == 0)

View File

@ -1,7 +1,7 @@
# Template file for 'sndio' # Template file for 'sndio'
pkgname=sndio pkgname=sndio
version=1.7.0 version=1.7.0
revision=2 revision=3
build_style=configure build_style=configure
configure_args="--prefix=/usr" configure_args="--prefix=/usr"
makedepends="alsa-lib-devel" makedepends="alsa-lib-devel"