From 606762311f25c816bdb153ee3b9a7ad751477384 Mon Sep 17 00:00:00 2001 From: Rob Swindell <rob@synchro.net> Date: Thu, 18 Mar 2021 18:36:54 -0700 Subject: [PATCH] Fix the single-threaded build: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit error: ‘handle_mutex’ undeclared --- src/xpdev/xpbeep.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xpdev/xpbeep.c b/src/xpdev/xpbeep.c index c4df7405b0..9693f7ba97 100644 --- a/src/xpdev/xpbeep.c +++ b/src/xpdev/xpbeep.c @@ -416,9 +416,13 @@ DLLCALL xptone_open_locked(void) if(pu_api != NULL) { handle_type=SOUND_DEVICE_PULSEAUDIO; handle_rc++; +#ifdef XPDEV_THREAD_SAFE pthread_mutex_unlock(&handle_mutex); +#endif xptone(0, 1, WAVE_SHAPE_SQUARE); +#ifdef XPDEV_THREAD_SAFE pthread_mutex_lock(&handle_mutex); +#endif if (pulseaudio_device_open_failed) { handle_type = SOUND_DEVICE_CLOSED; } -- GitLab