]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Add missing include for kill(2)
authorBernhard Froehlich <decke@bluelife.at>
Wed, 21 Jun 2017 13:51:00 +0000 (13:51 +0000)
committerJaroslav Kysela <perex@perex.cz>
Wed, 28 Jun 2017 06:26:06 +0000 (08:26 +0200)
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);

src/spawn.c

index 1d69a02612c4a1fa739a717a31b7b6a45f49300c..7318524319a9e70c7709d467df3e22ecedd699a1 100644 (file)
@@ -28,6 +28,7 @@
 #include <syslog.h>
 #include <fcntl.h>
 #include <dirent.h>
+#include <signal.h>
 
 #include "tvheadend.h"
 #include "tvhpoll.h"