gst-plugins-base: Illumos build fix
Building gst-plugins-base-1.24.0 fails on Illumus with:
../gst-libs/gst/allocators/gstshmallocator.c: In function 'gst_shm_allocator_alloc':
../gst-libs/gst/allocators/gstshmallocator.c:97:17: error: 'S_IRUSR' undeclared (first use in this function)
97 | int perms = S_IRUSR | S_IWUSR | S_IRGRP;
| ^~~~~~~
../gst-libs/gst/allocators/gstshmallocator.c:97:17: note: each undeclared identifier is reported only once for each function it appears in
../gst-libs/gst/allocators/gstshmallocator.c:97:27: error: 'S_IWUSR' undeclared (first use in this function)
97 | int perms = S_IRUSR | S_IWUSR | S_IRGRP;
| ^~~~~~~
../gst-libs/gst/allocators/gstshmallocator.c:97:37: error: 'S_IRGRP' undeclared (first use in this function)
97 | int perms = S_IRUSR | S_IWUSR | S_IRGRP;
| ^~~~~~~
The fix is to include <sys/stat.h>:
--- gst-libs/gst/allocators/gstshmallocator.c.orig 2024-03-11 09:02:38.876091503 +0000
+++ gst-libs/gst/allocators/gstshmallocator.c
@@ -44,6 +44,7 @@
#include "config.h"
#endif
+#include <sys/stat.h>
#include "gstshmallocator.h"
#ifdef HAVE_MMAP