diff options
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 |