Fixed missing alloca.h include

Author Mitja Felicijan <mitja.felicijan@gmail.com> 2024-10-07 19:22:45 +0200
Committer Mitja Felicijan <mitja.felicijan@gmail.com> 2024-10-07 19:22:45 +0200
Commit 6fc4bddfdf8e056469f316c1a0fe488efbb4253a (patch)
-rw-r--r-- example4.c 3
1 files changed, 2 insertions, 1 deletions
diff --git a/example4.c b/example4.c
1
#include <stdio.h>
1
#include <stdio.h>
2
#include <stdlib.h>
2
#include <stdlib.h>
  
3
#include <alloca.h>
3
#include <signal.h>
4
#include <signal.h>
4
#include <alsa/asoundlib.h>
5
#include <alsa/asoundlib.h>
5
  
6
  
...
72
  
73
  
73
	// Reading MIDI device.
74
	// Reading MIDI device.
74
	struct pollfd *pfds;
75
	struct pollfd *pfds;
75
	int npfds;
76
	size_t npfds;
76
  
77
  
77
	npfds = snd_seq_poll_descriptors_count(seq_handle, POLLIN);
78
	npfds = snd_seq_poll_descriptors_count(seq_handle, POLLIN);
78
	pfds = alloca(sizeof(*pfds) * npfds);
79
	pfds = alloca(sizeof(*pfds) * npfds);
...