Skip to content

Commit d4035b9

Browse files
committed
ci: fix build on linux that do not have a recent enough ALSA
1 parent 2382798 commit d4035b9

2 files changed

Lines changed: 6 additions & 2 deletions

File tree

include/libremidi/backends/alsa_seq/observer.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,7 @@ class observer_impl
319319
// TODO
320320
break;
321321
}
322-
#if __has_include(<alsa/ump.h>)
322+
#if LIBREMIDI_ALSA_HAS_UMP_SEQ_EVENTS
323323
case SND_SEQ_EVENT_UMP_EP_CHANGE: {
324324
// TODO
325325
break;
@@ -440,7 +440,7 @@ class observer_threaded : public observer_impl<ConfigurationImpl>
440440
case SND_SEQ_EVENT_CLIENT_EXIT:
441441
case SND_SEQ_EVENT_CLIENT_CHANGE:
442442

443-
#if __has_include(<alsa/ump.h>)
443+
#if LIBREMIDI_ALSA_HAS_UMP_SEQ_EVENTS
444444
case SND_SEQ_EVENT_UMP_EP_CHANGE:
445445
case SND_SEQ_EVENT_UMP_BLOCK_CHANGE:
446446
#endif

include/libremidi/backends/linux/alsa.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@
1313
#if __has_include(<alsa/ump.h>) && SND_LIB_VERSION >= ((1 << 16) | (2 << 8) | 10)
1414
#define LIBREMIDI_ALSA_HAS_UMP 1
1515
#endif
16+
17+
#if __has_include(<alsa/ump.h>) && SND_LIB_VERSION >= ((1 << 16) | (2 << 8) | 14)
18+
#define LIBREMIDI_ALSA_HAS_UMP_SEQ_EVENTS 1
19+
#endif
1620
#endif
1721

1822
namespace libremidi

0 commit comments

Comments
 (0)