From 988eaa44b442e788e72cc3a557d0ec5dea0914d7 Mon Sep 17 00:00:00 2001 From: nhmall Date: Fri, 28 Aug 2026 10:46:50 -0400 Subject: [PATCH] relocate declaration of sounddir It shouldn't have been located inside an #ifdef USER_SOUNDS block. --- src/sounds.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sounds.c b/src/sounds.c index 4fcd1c9de..999574562 100644 --- a/src/sounds.c +++ b/src/sounds.c @@ -1538,6 +1538,8 @@ tiphat(void) return res; } +char *sounddir = 0; /* set in files.c */ + #ifdef USER_SOUNDS typedef struct audio_mapping_rec { @@ -1551,7 +1553,6 @@ typedef struct audio_mapping_rec { static audio_mapping *soundmap = 0; static audio_mapping *sound_matches_message(const char *); -char *sounddir = 0; /* set in files.c */ /* adds a sound file mapping, returns 0 on failure, 1 on success */ int