diff options
author | wm4 <wm4@nowhere> | 2016-02-08 20:29:08 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-02-08 20:29:08 +0100 |
commit | c3348d86f21944bad9e582f3c5d6b4cc4e4abfb1 (patch) | |
tree | f805c9726e94a5eba2fd1b4d197b9b9a3fa69823 /osdep/subprocess.c | |
parent | 5d0c89a03995e2572f2ff23a6dc6a3a19a8213ad (diff) | |
download | mpv-c3348d86f21944bad9e582f3c5d6b4cc4e4abfb1.tar.bz2 mpv-c3348d86f21944bad9e582f3c5d6b4cc4e4abfb1.tar.xz |
build: make posix_spawn optional
OK, Android doesn't support it.
Diffstat (limited to 'osdep/subprocess.c')
-rw-r--r-- | osdep/subprocess.c | 12 |
1 files changed, 12 insertions, 0 deletions
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 <pthread.h> +#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 |