freebsd-ports/java/jdk15/files/patch-..::src::solaris::native::com::sun::media::sound::engine::HAE_API_BSDOS.c
Greg Lewis 4a6fa7fd6f Fix the build of libaudio.so on 5-CURRENT by using <sys/soundcard.h>
rather than <machine/soundcard.h>.  This doesn't affect the build
on 4-STABLE.

PR:		36988
Submitted by:	Motoyuki Konno <motoyuki@bsdclub.org>
Reviewed by:	sobomax
Approved by:	sobomax
2002-04-16 19:34:24 +00:00

17 lines
428 B
C

$FreeBSD$
--- ../src/solaris/native/com/sun/media/sound/engine/HAE_API_BSDOS.c Thu Apr 11 14:58:48 2002
+++ ../src/solaris/native/com/sun/media/sound/engine/HAE_API_BSDOS.c Thu Apr 11 15:14:18 2002
@@ -58,7 +58,11 @@
#include <sys/wait.h>
#include <errno.h>
#ifdef __FreeBSD__
+#if __FreeBSD__ > 3
+#include <sys/soundcard.h>
+#else
#include <machine/soundcard.h>
+#endif
#endif
#ifdef __NetBSD__
#include <soundcard.h>