From: Jaroslav Kysela Date: Mon, 3 Nov 2025 15:01:34 +0000 (+0100) Subject: rawmidi: Fix SNDRV_RAWMIDI_INFO_STREAM_INACTIVE duplicate definition X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=11a716d1d09fd15c6a04a157601fa432131a6880;p=alsa-lib.git rawmidi: Fix SNDRV_RAWMIDI_INFO_STREAM_INACTIVE duplicate definition The origin of this define is in include/alsa/sound/uapi/asound.h included from include/local.h. Skip redefinition in the internal build. Fixes: e6d0db9d ("rawmidi: Fix the prefix of the inactive stream flag") Signed-off-by: Jaroslav Kysela --- diff --git a/include/rawmidi.h b/include/rawmidi.h index f3676d29..554e706f 100644 --- a/include/rawmidi.h +++ b/include/rawmidi.h @@ -102,7 +102,9 @@ typedef enum _snd_rawmidi_read_mode { /** rawmidi info bit flags */ #define SND_RAWMIDI_INFO_UMP 0x00000008 /**< rawmidi is UMP */ #define SND_RAWMIDI_INFO_STREAM_INACTIVE 0x00000010 /**< the selected substream is inactive */ +#ifndef SNDRV_RAWMIDI_INFO_STREAM_INACTIVE #define SNDRV_RAWMIDI_INFO_STREAM_INACTIVE SND_RAWMIDI_INFO_STREAM_INACTIVE /* only for compatibility */ +#endif int snd_rawmidi_open(snd_rawmidi_t **in_rmidi, snd_rawmidi_t **out_rmidi, const char *name, int mode);