From be57450fee3cbe57300630bbc4b7b80d969c8144 Mon Sep 17 00:00:00 2001 From: Gerald Pfeifer Date: Thu, 19 May 2011 08:24:23 -0600 Subject: [PATCH] wineoss.drv: Cope with system which lack SNDCTL_DSP_HALT. --- dlls/wineoss.drv/mmdevdrv.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dlls/wineoss.drv/mmdevdrv.c b/dlls/wineoss.drv/mmdevdrv.c index 7dec1e02152..0edcb25c262 100644 --- a/dlls/wineoss.drv/mmdevdrv.c +++ b/dlls/wineoss.drv/mmdevdrv.c @@ -53,6 +53,13 @@ #include "audiopolicy.h" #include "audioclient.h" + +/* Some implementations of OSS, such as FreeBSD older than 9.0, lack + SNDCTL_DSP_HALT which is just a synonym for the older SNDCTL_DSP_RESET. */ +#ifndef SNDCTL_DSP_HALT +#define SNDCTL_DSP_HALT SNDCTL_DSP_RESET +#endif + WINE_DEFAULT_DEBUG_CHANNEL(oss); #define NULL_PTR_ERR MAKE_HRESULT(SEVERITY_ERROR, FACILITY_WIN32, RPC_X_NULL_REF_POINTER)