[MacPorts] #61680: runit @2.1.2: error: implicit declaration of function 'execve' is invalid in C99
MacPorts
noreply at macports.org
Sat Feb 13 17:00:00 UTC 2021
#61680: runit @2.1.2: error: implicit declaration of function 'execve' is invalid
in C99
-------------------------+----------------------
Reporter: fgatherlet | Owner: (none)
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.6.4
Resolution: | Keywords: catalina
Port: runit |
-------------------------+----------------------
Comment (by jacobvosmaer):
This patch works for me:
{{{
diff --git src/pathexec_run.c src/pathexec_run.c
index 1770ac7..70ac7a8 100644
--- src/pathexec_run.c
+++ src/pathexec_run.c
@@ -1,5 +1,6 @@
/* Public domain. */
+#include <unistd.h>
#include "error.h"
#include "stralloc.h"
#include "str.h"
diff --git src/prot.c src/prot.c
index 79a88c5..139dac3 100644
--- src/prot.c
+++ src/prot.c
@@ -1,5 +1,6 @@
/* Public domain. */
+#include <unistd.h>
#include "hasshsgr.h"
#include "prot.h"
diff --git src/seek_set.c src/seek_set.c
index 19b8265..a1a36d0 100644
--- src/seek_set.c
+++ src/seek_set.c
@@ -1,6 +1,7 @@
/* Public domain. */
#include <sys/types.h>
+#include <unistd.h>
#include "seek.h"
#define SET 0 /* sigh */
}}}
--
Ticket URL: <https://trac.macports.org/ticket/61680#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list