ports/java/jdk12/files/patch-HAE_API_bsd.c
Greg Lewis 7444b52f8d . Use <sys/soundcard.h> on FreeBSD (fixes compilation on 5.x).
. Cope with gcc 3.x in a preprocessor conditional.

PR:		47707, 47699
Submitted by:	grog (PRs),
		"R. Lake" <rich@lakes.plus.com> (independently in email)
2003-02-20 10:04:20 +00:00

16 lines
581 B
C

Index: src/bsd/native/sun/audio/HAE_API_bsd.c
===================================================================
RCS file: /home/Java/CVS/JDK2/javasrc/src/bsd/native/sun/audio/HAE_API_bsd.c,v
retrieving revision 1.7
diff -u -r1.7 HAE_API_bsd.c
--- src/bsd/native/sun/audio/HAE_API_bsd.c 11 Sep 2001 05:01:58 -0000 1.7
+++ src/bsd/native/sun/audio/HAE_API_bsd.c 20 Feb 2003 07:10:48 -0000
@@ -51,7 +51,7 @@
#include <sys/wait.h>
#include <errno.h>
#ifdef __FreeBSD__
-#include <machine/soundcard.h>
+#include <sys/soundcard.h>
#elif __OpenBSD__
#include <soundcard.h>
#endif