FreeBSD: explicit include signal.h to fix build failure
authorChengwei Yang <chengwei.yang@intel.com>
Wed, 26 Jun 2013 07:40:12 +0000 (15:40 +0800)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Wed, 26 Jun 2013 12:04:01 +0000 (13:04 +0100)
In Linux envrionment, signal.h included by sys/wait.h, however, this
isn't the case in FreeBSD. So explicit include it to fix build failure.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=66197
Signed-off-by: Chengwei Yang <chengwei.yang@intel.com>
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
tools/dbus-run-session.c

index 4f0b32b..4f7243f 100644 (file)
@@ -34,6 +34,7 @@
 
 #include <sys/types.h>
 #include <sys/wait.h>
+#include <signal.h>
 
 #define MAX_ADDR_LEN 512
 #define PIPE_READ_END  0