summaryrefslogtreecommitdiff
blob: 998da4e00a1e1e0696822143f8298aba24b5696f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- dosbox-0.60.orig/src/gui/midi_alsa.h	2003-12-12 01:02:33.207257320 -0500
+++ dosbox-0.60/src/gui/midi_alsa.h	2003-12-12 01:02:45.245427240 -0500
@@ -16,12 +16,17 @@
  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <alsa/version.h>
+# if SND_LIB_MAJOR==1
+#define ALSA_PCM_OLD_HW_PARAMS_API
+#define ALSA_PCM_NEW_HW_PARAMS_API
+# endif
 #include <alsa/asoundlib.h>
 #include <ctype.h>
 
 #define ADDR_DELIM	".:"
 
-#if SND_LIB_MINOR >= 6
+#if SND_LIB_MINOR >= 6 || SND_LIB_MAJOR==1
 #define snd_seq_flush_output(x) snd_seq_drain_output(x)
 #define snd_seq_set_client_group(x,name)	/*nop */
 #define my_snd_seq_open(seqp) snd_seq_open(seqp, "hw", SND_SEQ_OPEN_OUTPUT, 0)