Skip to content

Commit

Permalink
daemontools: patch for missing headers for POSIX functions (#903)
Browse files Browse the repository at this point in the history
  • Loading branch information
alebcay authored Jan 4, 2024
1 parent 692a555 commit d1f5fea
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions daemontools/posix-headers.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
diff -u a/daemontools-0.76/src/matchtest.c b/daemontools-0.76/src/matchtest.c
--- a/daemontools-0.76/src/matchtest.c
+++ b/daemontools-0.76/src/matchtest.c
@@ -1,3 +1,4 @@
+#include <unistd.h>
#include "match.h"
#include "buffer.h"
#include "str.h"
diff -u a/daemontools-0.76/src/multilog.c b/daemontools-0.76/src/multilog.c
--- a/daemontools-0.76/src/multilog.c
+++ b/daemontools-0.76/src/multilog.c
@@ -1,6 +1,7 @@
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
+#include <stdio.h>
#include "direntry.h"
#include "alloc.h"
#include "buffer.h"
diff -u a/daemontools-0.76/src/pathexec_run.c b/daemontools-0.76/src/pathexec_run.c
--- a/daemontools-0.76/src/pathexec_run.c
+++ b/daemontools-0.76/src/pathexec_run.c
@@ -1,5 +1,6 @@
/* Public domain. */

+#include <unistd.h>
#include "error.h"
#include "stralloc.h"
#include "str.h"
diff -u a/daemontools-0.76/src/prot.c b/daemontools-0.76/src/prot.c
--- a/daemontools-0.76/src/prot.c
+++ b/daemontools-0.76/src/prot.c
@@ -1,5 +1,6 @@
/* Public domain. */

+#include <unistd.h>
#include "hasshsgr.h"
#include "prot.h"

diff -u a/daemontools-0.76/src/seek_set.c b/daemontools-0.76/src/seek_set.c
--- a/daemontools-0.76/src/seek_set.c
+++ b/daemontools-0.76/src/seek_set.c
@@ -1,6 +1,7 @@
/* Public domain. */

#include <sys/types.h>
+#include <unistd.h>
#include "seek.h"

#define SET 0 /* sigh */
diff -u a/daemontools-0.76/src/supervise.c b/daemontools-0.76/src/supervise.c
--- a/daemontools-0.76/src/supervise.c
+++ b/daemontools-0.76/src/supervise.c
@@ -2,6 +2,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <signal.h>
+#include <stdio.h>
#include "sig.h"
#include "strerr.h"
#include "error.h"

0 comments on commit d1f5fea

Please sign in to comment.