From: Bernhard Froehlich Date: Wed, 21 Jun 2017 13:51:00 +0000 (+0000) Subject: Add missing include for kill(2) X-Git-Tag: v4.2.3~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c4950973d4129133c0f12520e98f4a44fabe76a4;p=thirdparty%2Ftvheadend.git Add missing include for kill(2) src/spawn.c:306:7: warning: implicit declaration of function 'kill' is invalid in C99 [-Wimplicit-function-declaration] kill(-(s->pid), SIGKILL); ^ src/spawn.c:306:23: error: use of undeclared identifier 'SIGKILL' kill(-(s->pid), SIGKILL); ^ src/spawn.c:655:3: warning: implicit declaration of function 'pthread_kill' is invalid in C99 [-Wimplicit-function-declaration] pthread_kill(spawn_pipe_tid, SIGTERM); ^ src/spawn.c:655:32: error: use of undeclared identifier 'SIGTERM' pthread_kill(spawn_pipe_tid, SIGTERM); --- diff --git a/src/spawn.c b/src/spawn.c index 1d69a0261..731852431 100644 --- a/src/spawn.c +++ b/src/spawn.c @@ -28,6 +28,7 @@ #include #include #include +#include #include "tvheadend.h" #include "tvhpoll.h"