spa/plugins: include <stdlib.h> for alloca() on non-linux

This commit is contained in:
Siva Mahadevan 2026-03-11 20:10:34 -04:00 committed by Wim Taymans
parent 357f27658e
commit 0393fd8a72
4 changed files with 11 additions and 3 deletions

View file

@ -11,8 +11,10 @@
#include <fcntl.h>
#include <string.h>
#include <poll.h>
#if !defined(__FreeBSD__) && !defined(__MidnightBSD__)
#ifdef __linux__
#include <alloca.h>
#else
#include <stdlib.h>
#endif
#include <errno.h>
#include <stdio.h>