build: add configure test for POSIX shm for the sake of vo_kitty

Android's POSIX coverage is pretty sketchy but not like we have a choice.
This commit is contained in:
sfan5
2022-12-26 15:08:07 +01:00
parent cb15bc4324
commit d8ae14653a
3 changed files with 15 additions and 4 deletions

View File

@@ -962,6 +962,11 @@ if features['sixel']
sources += files('video/out/vo_sixel.c')
endif
features += {'posix_shm': false}
if features['posix']
features += {'posix_shm': cc.has_function('shm_open', prefix: '#include <sys/mman.h>')}
endif
spirv_cross = dependency('spirv-cross-c-shared', required: get_option('spirv-cross'))
features += {'spirv-cross': spirv_cross.found()}
if features['spirv-cross']