pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: audio/flite Fix audio_flush_sun
Hey, this patch is incorrect. AUDIO_FLUSH does not
exist on Solaris - you need to use the STREAMS ioctl.
On Tue, Jan 30, 2024 at 03:02:56AM +0000, adr wrote:
> Hi, could someone apply this patch to audio/flite?
>
> It's a fix from Brian Buhrow:
>
> https://marc.info/?l=pkgsrc-users&m=170594747916750&w=2
>
> adr
> ==================================================================
> RCS file: /cvsroot/pkgsrc/audio/flite/patches/patch-ae,v
> retrieving revision 1.2
> diff -u -r1.2 patch-ae
> --- patches/patch-ae 17 Apr 2021 09:24:50 -0000 1.2
> +++ patches/patch-ae 30 Jan 2024 02:56:09 -0000
> @@ -22,3 +22,12 @@
>
> switch (fmt)
> {
> +@@ -163,7 +164,7 @@ int audio_write_sun(cst_audiodev *ad, vo
> + + int audio_flush_sun(cst_audiodev *ad)
> + {
> +- return ioctl((int)ad->platform_data, AUDIO_DRAIN, 0);
> ++ return ioctl((int)ad->platform_data, AUDIO_FLUSH, 0);
> + }
> + + /* FIXME... */
> --- patches/patch-ae 17 Apr 2021 09:24:50 -0000 1.2
> +++ patches/patch-ae 30 Jan 2024 09:56:47 -0000
> @@ -22,3 +22,12 @@
>
> switch (fmt)
> {
> +@@ -163,7 +164,7 @@ int audio_write_sun(cst_audiodev *ad, vo
> +
> + int audio_flush_sun(cst_audiodev *ad)
> + {
> +- return ioctl((int)ad->platform_data, AUDIO_DRAIN, 0);
> ++ return ioctl((int)ad->platform_data, AUDIO_FLUSH, 0);
> + }
> +
> + /* FIXME... */
Home |
Main Index |
Thread Index |
Old Index