From c3348d86f21944bad9e582f3c5d6b4cc4e4abfb1 Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 8 Feb 2016 20:29:08 +0100 Subject: build: make posix_spawn optional OK, Android doesn't support it. --- osdep/subprocess.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'osdep/subprocess.c') diff --git a/osdep/subprocess.c b/osdep/subprocess.c index e7678cdf76..dbd6100d2c 100644 --- a/osdep/subprocess.c +++ b/osdep/subprocess.c @@ -17,6 +17,8 @@ #include +#include "config.h" + #include "common/common.h" #include "common/msg.h" #include "common/msg_control.h" @@ -55,3 +57,13 @@ void mp_subprocess_detached(struct mp_log *log, char **args) if (pthread_create(&thread, NULL, run_subprocess, p)) talloc_free(p); } + +#if !HAVE_SUBPROCESS +int mp_subprocess(char **args, struct mp_cancel *cancel, void *ctx, + subprocess_read_cb on_stdout, subprocess_read_cb on_stderr, + char **error) +{ + *error = "unsupported"; + return -1; +} +#endif -- cgit v1.2.3