From 6fc4bddfdf8e056469f316c1a0fe488efbb4253a Mon Sep 17 00:00:00 2001 From: Mitja Felicijan Date: Mon, 7 Oct 2024 19:22:45 +0200 Subject: Fixed missing alloca.h include --- example4.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example4.c b/example4.c index a24680e..1dc9ebe 100644 --- a/example4.c +++ b/example4.c @@ -1,5 +1,6 @@ #include #include +#include #include #include @@ -72,7 +73,7 @@ int main(void) { // Reading MIDI device. struct pollfd *pfds; - int npfds; + size_t npfds; npfds = snd_seq_poll_descriptors_count(seq_handle, POLLIN); pfds = alloca(sizeof(*pfds) * npfds); -- cgit v1.2.3