daemonize: -Werror=implicit-function-declaration

This commit is contained in:
Fredrik Fornwall 2017-07-07 00:34:47 +02:00
parent fcf596bd19
commit 49f69cc34e

View File

@ -1,7 +1,15 @@
diff -u -r ../daemonize-release-1.7.7/daemonize.c ./daemonize.c
--- ../daemonize-release-1.7.7/daemonize.c 2015-12-11 17:54:43.000000000 -0500
+++ ./daemonize.c 2016-12-23 03:40:30.055592421 -0500
@@ -38,7 +38,10 @@
--- ../daemonize-release-1.7.7/daemonize.c 2015-12-11 23:54:43.000000000 +0100
+++ ./daemonize.c 2017-07-07 00:33:39.931635851 +0200
@@ -24,6 +24,7 @@
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/file.h>
+#include <grp.h> /* For initgroups(3). */
#include "config.h"
#include "version.h"
@@ -38,7 +39,10 @@
static bool be_verbose = FALSE;
static const char *user = NULL;
static char **cmd = NULL;