Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2084c387 by Steve Lhomme at 2026-01-20T10:03:07+00:00
missing: don't override vlc_process_XXX for UWP

Since 8903fedfd90ad44b6d0493ca7e7c81b8a3b84485 we have:
- vlc_process_Spawn
- vlc_process_Terminate
- vlc_process_fd_Read
- vlc_process_fd_Write

We don't have:
- vlc_spawn
- vlc_spawnp
- vlc_waitpid

- - - - -
abd5e50f by Steve Lhomme at 2026-01-20T10:03:07+00:00
meson: also add win32/process.c to UWP build

As done in 8903fedfd90ad44b6d0493ca7e7c81b8a3b84485 for autotools

- - - - -


2 changed files:

- src/meson.build
- src/missing.c


Changes:

=====================================
src/meson.build
=====================================
@@ -346,6 +346,7 @@ elif host_system == 'windows'
         'win32/rand.c',
         'win32/specific.c',
         'win32/thread.c',
+        'win32/process.c',
     ]
 
     if have_win_store
@@ -358,7 +359,6 @@ elif host_system == 'windows'
             'win32/timer.c',
             'win32/dirs.c',
             'win32/spawn.c',
-            'win32/process.c',
         ]
     endif
 else


=====================================
src/missing.c
=====================================
@@ -150,16 +150,19 @@ _Noreturn void vlc_control_cancel (vlc_cleanup_t *cleaner)
 
 #if !defined(_WIN32)
 # define HAVE_WEAK_SPAWN
+# define HAVE_WEAK_SPAWNP
 #else
 # if !WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP)
-#  define HAVE_WEAK_SPAWN
+#  define HAVE_WEAK_SPAWNP
 # endif
 #endif
 
-#ifdef HAVE_WEAK_SPAWN
+#if defined(HAVE_WEAK_SPAWN) || defined(HAVE_WEAK_SPAWNP)
 #include <errno.h>
 #include <vlc_spawn.h>
+#endif
 
+#if defined(HAVE_WEAK_SPAWNP)
 VLC_WEAK
 int vlc_spawn(pid_t *pid, const char *file, const int *fds,
               const char *const *args)
@@ -182,7 +185,9 @@ int vlc_waitpid(pid_t pid)
     (void) pid;
     vlc_assert_unreachable();
 }
+#endif
 
+#if defined(HAVE_WEAK_SPAWN)
 VLC_WEAK struct vlc_process *
 vlc_process_Spawn(const char *path, int argc, const char *const *argv)
 {



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/compare/f39b1c2ca24b334d34133b6a0a0d8c20a3f93e20...abd5e50fefc35d29f143155b2916d0c4965f1a67

-- 
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/compare/f39b1c2ca24b334d34133b6a0a0d8c20a3f93e20...abd5e50fefc35d29f143155b2916d0c4965f1a67
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to