Subject: Re: updating rdesktop to 1.3.0?
To: None <mason@primenet.com.au>
From: Mark Davies <mark@mcs.vuw.ac.nz>
List: tech-pkg
Date: 11/16/2003 01:05:31
	From:  Geoff Wing <mason@primenet.com.au>
	Date:  Sat, 15 Nov 2003 06:44:31 +0000 (UTC)

> grant beattie <grant@NetBSD.org> typed:
> : I have an update which builds and works on NetBSD, other platforms
> : may need a little work.
> 
> This is what I did for myself.  patch-a[ab] will need some $NetBSD$ IDs.

My update was pretty similar to Geoff's except that rather than changing 
configure to have NetBSD select "oss" rather than "sun" audio I added the 
following patch-ac

$NetBSD$

--- rdpsnd_sun.c.orig   2003-10-30 03:13:59.000000000 +1300
+++ rdpsnd_sun.c
@@ -26,7 +26,6 @@
 #include <errno.h>
 #include <sys/ioctl.h>
 #include <sys/audioio.h>
-#include <stropts.h>

 #define MAX_QUEUE      10

@@ -81,7 +80,13 @@ wave_out_close(void)
        }

        /* Flush the audiobuffer */
+#if defined(I_FLUSH) && defined(FLUSHW)
        ioctl(g_dsp_fd, I_FLUSH, FLUSHW);
+#else
+#if defined(AUDIO_FLUSH)
+       ioctl(g_dsp_fd, AUDIO_FLUSH, 0);
+#endif
+#endif
        close(g_dsp_fd);
 }


With this it builds and works for me on NetBSD-current and Solaris (though I 
havent actually tested the audio support on either)

cheers
mark