From 78cf571066c4220f59df0861c8716f51e9f77fa6 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Tue, 1 May 2018 16:33:48 -0400 Subject: [PATCH] fixup! utils: add function for running program --- src/libply/ply-utils.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/libply/ply-utils.c b/src/libply/ply-utils.c index 9d2e6ff6..ba9fd1ea 100644 --- a/src/libply/ply-utils.c +++ b/src/libply/ply-utils.c @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -1020,9 +1021,9 @@ ply_run_program_in_background (const char *program) { pid_t pid; int result; - char argv[2] = { program, NULL }; + const char *argv[2] = { program, NULL }; - result = posix_spawn (&pid, program, NULL, NULL, argv, NULL); + result = posix_spawn (&pid, program, NULL, NULL, (char **) argv, NULL); return result == 0; } -- 2.47.3