Files
daemontools/fix_includes_prototypes.patch
2011-04-25 20:47:22 +00:00

89 lines
1.9 KiB
Diff

Index: src/chkshsgr.c
===================================================================
--- src/chkshsgr.c.orig
+++ src/chkshsgr.c
@@ -1,6 +1,8 @@
/* Public domain. */
+#include <sys/types.h>
#include <unistd.h>
+#include <grp.h>
int main()
{
Index: src/multilog.c
===================================================================
--- src/multilog.c.orig
+++ src/multilog.c
@@ -20,6 +20,7 @@
#include "sig.h"
#include "match.h"
#include "deepsleep.h"
+#include <stdio.h>
#define FATAL "multilog: fatal: "
#define WARNING "multilog: warning: "
Index: src/prot.c
===================================================================
--- src/prot.c.orig
+++ src/prot.c
@@ -2,6 +2,9 @@
#include "hasshsgr.h"
#include "prot.h"
+#include <sys/types.h>
+#include <unistd.h>
+#include <grp.h>
int prot_gid(int gid)
{
Index: src/seek_set.c
===================================================================
--- src/seek_set.c.orig
+++ src/seek_set.c
@@ -2,6 +2,8 @@
#include <sys/types.h>
#include "seek.h"
+#include <sys/types.h>
+#include <unistd.h>
#define SET 0 /* sigh */
Index: src/supervise.c
===================================================================
--- src/supervise.c.orig
+++ src/supervise.c
@@ -15,6 +15,7 @@
#include "iopause.h"
#include "taia.h"
#include "deepsleep.h"
+#include <stdio.h>
#define FATAL "supervise: fatal: "
#define WARNING "supervise: warning: "
Index: src/matchtest.c
===================================================================
--- src/matchtest.c.orig
+++ src/matchtest.c
@@ -1,6 +1,7 @@
#include "match.h"
#include "buffer.h"
#include "str.h"
+#include <unistd.h>
int main(int argc,char **argv)
{
Index: src/pathexec_run.c
===================================================================
--- src/pathexec_run.c.orig
+++ src/pathexec_run.c
@@ -5,6 +5,7 @@
#include "str.h"
#include "env.h"
#include "pathexec.h"
+#include <unistd.h>
static stralloc tmp;