opnsense-ports/emulators/stonx/files/patch-audio.c
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

12 lines
404 B
C

--- audio.c.orig 2004-08-15 16:07:55.000000000 +0200
+++ audio.c 2010-04-03 09:44:58.000000000 +0200
@@ -45,6 +45,9 @@
#include <linux/sched.h>
#include <linux/unistd.h>
#endif
+#elif defined(__FreeBSD__)
+#include <sys/soundcard.h>
+#define SOUND_DEVICE "/dev/dsp"
#elif defined(__NetBSD__) || defined(__OpenBSD__)
/* NetBSD's Linux API emulation, require -lossaudio too */
#include <soundcard.h>