mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 11:48:10 +00:00
Ports: Bump the version of make to 4.4.1
This commit is contained in:
parent
260b0451b0
commit
251ea54cc8
5 changed files with 11 additions and 9 deletions
|
@ -1,31 +0,0 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Cameron Youell <cameronyouell@gmail.com>
|
||||
Date: Mon, 27 Mar 2023 21:18:24 +1100
|
||||
Subject: [PATCH] Hardcode default path because `confstr` is missing
|
||||
|
||||
---
|
||||
src/job.c | 4 ++++
|
||||
1 file changed, 4 insertions(+)
|
||||
|
||||
diff --git a/src/job.c b/src/job.c
|
||||
index 8116855..914935a 100644
|
||||
--- a/src/job.c
|
||||
+++ b/src/job.c
|
||||
@@ -2387,6 +2387,7 @@ child_execute_job (struct childbase *child, int good_stdin, char **argv)
|
||||
/* execvp() will use a default PATH if none is set; emulate that. */
|
||||
if (p == NULL)
|
||||
{
|
||||
+#ifndef __serenity__
|
||||
size_t l = confstr (_CS_PATH, NULL, 0);
|
||||
if (l)
|
||||
{
|
||||
@@ -2394,6 +2395,9 @@ child_execute_job (struct childbase *child, int good_stdin, char **argv)
|
||||
confstr (_CS_PATH, dp, l);
|
||||
p = dp;
|
||||
}
|
||||
+#else
|
||||
+ p = strdup("/bin:/usr/bin");
|
||||
+#endif
|
||||
}
|
||||
|
||||
cmd = (char *)find_in_given_path (argv[0], p, NULL, 0);
|
Loading…
Add table
Add a link
Reference in a new issue