summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMitja Felicijan <mitja.felicijan@gmail.com>2024-10-07 19:22:45 +0200
committerMitja Felicijan <mitja.felicijan@gmail.com>2024-10-07 19:22:45 +0200
commit6fc4bddfdf8e056469f316c1a0fe488efbb4253a (patch)
tree362fc55ed291bf0e983a610a9e5fc189fe49ced8
parent0eeada47529c98b7a3b213146ec4552f02aa9038 (diff)
downloadttdaw-6fc4bddfdf8e056469f316c1a0fe488efbb4253a.tar.gz
Fixed missing alloca.h include
-rw-r--r--example4.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/example4.c b/example4.c
index a24680e..1dc9ebe 100644
--- a/example4.c
+++ b/example4.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
+#include <alloca.h>
#include <signal.h>
#include <alsa/asoundlib.h>
@@ -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);