From 0ae6550bce397f161af487c831fffc22e0e52d59 Mon Sep 17 00:00:00 2001 From: derselbst Date: Fri, 14 Jul 2017 21:24:17 +0200 Subject: [PATCH] build issue with OSS on OpenSolaris and kfreebsd-* Hopefully fixes both: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690006 and 98007640266ea1810f36307da64f3d355a2a49f4 --- fluidsynth/src/drivers/fluid_oss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fluidsynth/src/drivers/fluid_oss.c b/fluidsynth/src/drivers/fluid_oss.c index 39c2ee37..a799c397 100644 --- a/fluidsynth/src/drivers/fluid_oss.c +++ b/fluidsynth/src/drivers/fluid_oss.c @@ -45,7 +45,7 @@ #define BUFFER_LENGTH 512 // Build issue on some systems (OSS 4.0)? -#ifdef SNDCTL_DSP_CHANNELS +#if !defined(SOUND_PCM_WRITE_CHANNELS) && defined(SNDCTL_DSP_CHANNELS) #define SOUND_PCM_WRITE_CHANNELS SNDCTL_DSP_CHANNELS #endif