It's a fast fix. The better way is to fix midifile.h or remote this example
(we have already some
Closes: https://github.com/alsa-project/alsa-lib/issues/436
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
#include <errno.h>
#include <string.h>
+#include "../include/asoundlib.h"
+
#include "midifile.h" /* SMF library header */
#include "midifile.c" /* SMF library code */
-#include "../include/asoundlib.h"
/* send the real-time time stamps (instead of midi ticks) to the ALSA sequencer */
static int use_realtime = 0;