lib: Remove warnings in daemon.c
authorEthan Jackson <ethan@nicira.com>
Thu, 14 Oct 2010 22:59:11 +0000 (22:59 +0000)
committerEthan Jackson <ethan@nicira.com>
Thu, 14 Oct 2010 22:59:11 +0000 (22:59 +0000)
On some platforms compilation of daemon.c results in implicit
declaration of function fstat and stat warnings.

lib/daemon.c

index bbcfe6afc7ebb5288178394a616eb31cf3f775cb..bc28973fc6a2d3d62c3aa7c270659387b8e3f0e1 100644 (file)
@@ -23,6 +23,7 @@
 #include <string.h>
 #include <sys/resource.h>
 #include <sys/wait.h>
+#include <sys/stat.h>
 #include <unistd.h>
 #include "command-line.h"
 #include "fatal-signal.h"