1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-11 07:22:22 +00:00

Fix build problem on 5-current.

<machine/soundcard.h> is moved to <sys/soundcard.h> on both 4-stable
and 5-current.  See commitlog of src/include/Makefile rev 1.165.
This commit is contained in:
Motoyuki Konno 2002-04-11 00:22:33 +00:00
parent 9e0cb30d0b
commit 8d4724eed2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=57551
4 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- pcmplay.c.old Sat Jan 2 08:57:41 1999
+++ pcmplay.c Thu Apr 11 08:00:07 2002
@@ -44,7 +44,7 @@
#include <sys/types.h>
#include <sys/uio.h>
#include <unistd.h>
-#include <machine/soundcard.h>
+#include <sys/soundcard.h>
#include "utils.h"
#include "getlopt.h"

View File

@ -0,0 +1,14 @@
--- xa_audio.h.old Thu Apr 11 08:48:39 2002
+++ xa_audio.h Thu Apr 11 08:49:25 2002
@@ -139,7 +139,11 @@
#define _FILE_DSP "/dev/dsp"
#define _FILE_MIXER "/dev/mixer"
#ifdef __FreeBSD__
+#if __FreeBSD__ > 3
+#include <sys/soundcard.h>
+#else
#include <machine/soundcard.h>
+#endif
#else
#include <sys/soundcard.h>
#endif

View File

@ -0,0 +1,14 @@
--- xa_audio.h.old Thu Apr 11 08:48:39 2002
+++ xa_audio.h Thu Apr 11 08:49:25 2002
@@ -139,7 +139,11 @@
#define _FILE_DSP "/dev/dsp"
#define _FILE_MIXER "/dev/mixer"
#ifdef __FreeBSD__
+#if __FreeBSD__ > 3
+#include <sys/soundcard.h>
+#else
#include <machine/soundcard.h>
+#endif
#else
#include <sys/soundcard.h>
#endif

View File

@ -0,0 +1,14 @@
--- include/sound.h.old Thu Sep 2 23:34:10 1999
+++ include/sound.h Thu Apr 11 08:32:05 2002
@@ -222,7 +222,11 @@
#include <sys/types.h>
#include <sys/file.h>
#include <sys/stat.h>
+#if __FreeBSD__ > 3
+#include <sys/soundcard.h>
+#else
#include <machine/soundcard.h>
+#endif
#undef O_RDWR
#define O_RDWR O_WRONLY /* audio $B%G%P%$%9$OF1;~%*!<%W%s$G$-$J$$!)(B */