wmmixer: Fix building on illumos

This commit is contained in:
nia 2022-04-18 18:47:56 +00:00
parent ccda6a68cd
commit 43d3a30c31
2 changed files with 19 additions and 1 deletions

View File

@ -1,6 +1,7 @@
$NetBSD: distinfo,v 1.13 2021/10/26 09:59:35 nia Exp $
$NetBSD: distinfo,v 1.14 2022/04/18 18:47:56 nia Exp $
BLAKE2s (wmmixer-1.9.tar.gz) = 48e1910f081412f4488cbe696c8f7d39520b8318482ae84d1e62f354df30bdab
SHA512 (wmmixer-1.9.tar.gz) = 3e1ac2185daad89f8e51ca45c8b96aa3d9791cf9889484fc9873d1111534cf457cfd598296b01a0fa67b2e2c4f4ecea2b9ed3890ef416548342187a1f5dad44d
Size (wmmixer-1.9.tar.gz) = 103603 bytes
SHA1 (patch-mixctl.cc) = 6301b07ea04d213c1c1ff6677afcf273d85328ce
SHA1 (patch-mixctl.h) = 4a455c606e2a4f82916a99570babed756b06151c

View File

@ -0,0 +1,17 @@
$NetBSD: patch-mixctl.h,v 1.1 2022/04/18 18:47:56 nia Exp $
Add illumos/Solaris to the list of platforms that have the OSS
header in sys/. Of course, most implementations have a copy in
sys/ (including NetBSD), but never mind that...
--- mixctl.h.orig 2021-03-03 22:36:51.000000000 +0000
+++ mixctl.h
@@ -23,7 +23,7 @@
#ifdef __NetBSD__
#include <soundcard.h>
#endif
-#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__)
+#if defined (__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__sun)
#include <sys/soundcard.h>
#endif
#ifdef __linux__