diff --git a/configure b/configure index c390bca..83c5ca7 100755 --- a/configure +++ b/configure @@ -265,7 +265,7 @@ if [ -f /usr/include/sys/soundcard.h ]; then echo "SOUNDOBJ = rdpsnd.o rdpsnd_oss.o" >>Makeconf cflags="$cflags -DWITH_RDPSND" elif [ -f /usr/include/sys/audioio.h ]; then - echo Sound support enabled: Sun + echo Sound support enabled: Sun/BSD echo echo "SOUNDOBJ = rdpsnd.o rdpsnd_sun.o" >>Makeconf cflags="$cflags -DWITH_RDPSND" diff --git a/rdpsnd_sun.c b/rdpsnd_sun.c index 5aace10..e583a2b 100644 --- a/rdpsnd_sun.c +++ b/rdpsnd_sun.c @@ -27,6 +27,10 @@ #include #include +#if (defined(sun) && (defined(__svr4__) || defined(__SVR4))) +#include +#endif + #define MAX_QUEUE 10 int g_dsp_fd;