pkgsrc/devel/xulrunner192/patches/patch-ar
tnn ff57234978 Re-import previous version of Firefox, because firefox-4.0 won't
work for some users (sparc64 support, for example, is busted and
won't appear again until firefox-5.0).
2011-04-19 11:16:02 +00:00

39 lines
1.1 KiB
Text

$NetBSD: patch-ar,v 1.1.1.1 2011/04/19 11:16:08 tnn Exp $
Enable the sunaudio module to build on NetBSD.
--- media/libsydneyaudio/src/sydney_audio_sunaudio.c.orig 2009-06-29 18:15:03.000000000 +0200
+++ media/libsydneyaudio/src/sydney_audio_sunaudio.c
@@ -38,9 +38,14 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#if defined(__NetBSD__)
+#include <sys/ioctl.h>
+#include <sys/audioio.h>
+#else
#include <stropts.h>
#include <sys/audio.h>
#include <sys/mixer.h>
+#endif
#include <errno.h>
#include <stdio.h>
#include <pthread.h>
@@ -197,7 +202,7 @@ sa_stream_open(sa_stream_t *s)
s->default_rate = audio_info.play.sample_rate;
s->default_precision = audio_info.play.precision;
- AUDIO_INITINFO(&audio_info)
+ AUDIO_INITINFO(&audio_info);
audio_info.play.sample_rate = s->rate;
audio_info.play.channels = s->n_channels;
@@ -210,7 +215,7 @@ sa_stream_open(sa_stream_t *s)
if (err== -1)
return SA_ERROR_NOT_SUPPORTED;
- AUDIO_INITINFO(&audio_info)
+ AUDIO_INITINFO(&audio_info);
err=ioctl(fd,AUDIO_GETINFO,&audio_info);
if (err== -1)
{