From fb53719cb765330f8bcf230428d65728463dcea1 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 14 Jun 2021 14:56:56 +0300
Subject: [PATCH] music_timidity.c: define a TIMIDITY_CFG_ETC default path for
OS/2.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
thanks Jochen Schäfer.
---
src/codecs/music_timidity.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/codecs/music_timidity.c b/src/codecs/music_timidity.c
index e0c1bc8..1072b7f 100644
--- a/src/codecs/music_timidity.c
+++ b/src/codecs/music_timidity.c
@@ -45,8 +45,11 @@ static void TIMIDITY_Delete(void *context);
/* Config file should contain any other directory that needs
* to be added to the search path. The library adds the path
* of the config file to its search path, too. */
-#if defined(__WIN32__) || defined(__OS2__)
+#if defined(__WIN32__)
# define TIMIDITY_CFG "C:\\TIMIDITY\\TIMIDITY.CFG"
+#elif defined(__OS2__)
+# define TIMIDITY_CFG "C:\\TIMIDITY\\TIMIDITY.CFG"
+# define TIMIDITY_CFG_ETC "/@unixroot/etc/timidity/timidity.cfg"
#else /* unix: */
# define TIMIDITY_CFG_ETC "/etc/timidity.cfg"
# define TIMIDITY_CFG_FREEPATS "/etc/timidity/freepats.cfg"