From c4d2fd043a8edc94fcdf04e2c8b6925d35d79693 Mon Sep 17 00:00:00 2001 From: Steve Lhomme Date: Thu, 12 Feb 2026 11:45:10 +0100 Subject: [PATCH] meson: add a global define to notify process.c is compiled --- config.h.meson | 3 +++ src/meson.build | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config.h.meson b/config.h.meson index c4114c7f80..567f8e3946 100644 --- a/config.h.meson +++ b/config.h.meson @@ -443,6 +443,9 @@ /* Define to 1 if you have the `vasprintf' function. */ #mesondefine HAVE_VASPRINTF +/* Define to 1 if vlc_process_Spawn() is usable. */ +#mesondefine HAVE_VLC_PROCESS_SPAWN + /* Define to 1 if you have the `vmsplice' function. */ #mesondefine HAVE_VMSPLICE diff --git a/src/meson.build b/src/meson.build index 2e64e18649..0b97c9dd4b 100644 --- a/src/meson.build +++ b/src/meson.build @@ -334,12 +334,14 @@ if host_system == 'darwin' 'posix/wait.c', ] if have_osx + cdata.set('HAVE_VLC_PROCESS_SPAWN', 1) libvlccore_sources += [ 'posix/spawn.c', 'posix/process.c', ] endif elif host_system == 'windows' + cdata.set('HAVE_VLC_PROCESS_SPAWN', 1) libvlccore_sources += [ 'win32/dirs-common.c', 'win32/error.c', @@ -385,6 +387,7 @@ else ] if host_system != 'android' + cdata.set('HAVE_VLC_PROCESS_SPAWN', 1) libvlccore_sources += [ 'posix/dirs.c', 'posix/error.c',