blob: 1dedd0bd0397f10cccd149a77134ae9d70e8acfa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
diff -urN interface/alsaseq_c.c interface/alsaseq_c.c
--- interface/alsaseq_c.c 2002-01-16 04:21:49.000000000 -0600
+++ interface/alsaseq_c.c 2004-01-21 01:46:55.414954936 -0600
@@ -45,6 +45,7 @@
#endif
#include <signal.h>
+#define ALSA_PCM_OLD_HW_PARAMS_API
#include <sys/asoundlib.h>
#include "timidity.h"
@@ -76,7 +77,7 @@
static struct seq_context alsactx;
-#if SND_LIB_MINOR >= 6
+#if SND_LIB_MINOR >= 6 || SND_LIB_MAJOR==1
/* !! this is a dirty hack. not sure to work in future !! */
static int snd_seq_file_descriptor(snd_seq_t *handle)
{
@@ -536,7 +537,7 @@
seq_play_event(&ev);
break;
-#if SND_LIB_MINOR >= 6
+#if SND_LIB_MINOR >= 6 || SND_LIB_MAJOR==1
#define snd_seq_addr_equal(a,b) ((a)->client == (b)->client && (a)->port == (b)->port)
case SND_SEQ_EVENT_PORT_SUBSCRIBED:
if (snd_seq_addr_equal(&aevp->data.connect.dest, &aevp->dest)) {
diff -urN timidity/alsa_a.c timidity/alsa_a.c
--- timidity/alsa_a.c 2002-01-16 04:15:20.000000000 -0600
+++ timidity/alsa_a.c 2004-01-21 00:39:51.324709640 -0600
@@ -41,10 +41,15 @@
#endif
/*ALSA header file*/
+#define ALSA_PCM_OLD_HW_PARAMS_API
#include <sys/asoundlib.h>
#if defined(SND_LIB_MINOR)
-#define ALSA_LIB SND_LIB_MINOR
+# if SND_LIB_MAJOR==1
+# define ALSA_LIB 10
+# else
+# define ALSA_LIB SND_LIB_MINOR
+# endif
#else
#define ALSA_LIB 3
#endif
|