Package: wmmixer
Severity: important
Tags: patch

Hi,

wmmixer fails to build on GNU/kFreeBSD due to missing support. 
Please find attached a patch to fix that. Note that the 
<machine/soundcard.h> -> <sys/soundcard.h> is taken from the FreeBSD
ports. It reflects the new location for this file. 

Could you please add it in the next upload?

Don't hesitate to contact me if you need more information.

Thanks in advance,
Aurelien



-- System Information:
Debian Release: testing/unstable
Architecture: kfreebsd-i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: GNU/kFreeBSD 5.4-1-686
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Author: aurel32
Status: in BTS

--- wmmixer-1.5.orig/mixctl.h
+++ wmmixer-1.5/mixctl.h
@@ -23,8 +23,8 @@
 #ifdef __NetBSD__
 #include <soundcard.h>
 #endif
-#ifdef __FreeBSD__
-#include <machine/soundcard.h>
+#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#include <sys/soundcard.h>
 #endif
 #ifdef __linux__
 #include <linux/soundcard.h>

Reply via email to