Merge pull request #6487 from heitbaum/make43

make: fails to execute extraordinarily long command lines - further fix
This commit is contained in:
CvH 2022-05-15 12:11:37 +02:00 committed by GitHub
commit 68912c51e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,14 +44,12 @@ diff --git a/src/job.c b/src/job.c
index 3bcec38..734c591 100644
--- a/src/job.c
+++ b/src/job.c
@@ -26,6 +26,14 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
@@ -26,6 +26,12 @@ this program. If not, see <http://www.gnu.org/licenses/>. */
#include "variable.h"
#include "os.h"
+#if defined (HAVE_LINUX_BINFMTS_H) && defined (HAVE_SYS_USER_H)
+#include <sys/user.h>
+#include <linux/binfmts.h>
+#endif
+#ifndef PAGE_SIZE
+# define PAGE_SIZE (sysconf(_SC_PAGESIZE))
+#endif