From cd80e92281dcda8753d931c03910ab16ff5c924b Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Fri, 31 Oct 2003 09:38:25 +0000 Subject: [PATCH] Be more portable to platforms where I_FLUSH && FLUSHW are not defined git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/trunk/rdesktop@537 423420c4-83ab-492f-b58f-81f9feb106b5 --- rdpsnd_sun.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rdpsnd_sun.c b/rdpsnd_sun.c index fe8b239..0a41ead 100644 --- a/rdpsnd_sun.c +++ b/rdpsnd_sun.c @@ -80,8 +80,10 @@ wave_out_close(void) queue_lo = (queue_lo + 1) % MAX_QUEUE; } +#if defined I_FLUSH && defined FLUSHW /* Flush the audiobuffer */ ioctl(g_dsp_fd, I_FLUSH, FLUSHW); +#endif close(g_dsp_fd); }