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

@ -10,7 +10,9 @@
#include <time.h>
#include <stdbool.h>
#include <getopt.h>
#ifdef __linux__
#include <alloca.h>
#endif
#include <spa/debug/context.h>
#include <spa/utils/string.h>

View file

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

View file

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

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>