daemonize: -Werror=implicit-function-declaration
authorFredrik Fornwall <fredrik@fornwall.net>
Thu, 6 Jul 2017 22:34:47 +0000 (00:34 +0200)
committerFredrik Fornwall <fredrik@fornwall.net>
Thu, 6 Jul 2017 22:34:47 +0000 (00:34 +0200)
packages/daemonize/daemonize.c.patch

index c9bbd01..ec78841 100644 (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;