Commit 99ca1fa8 authored by SZ Lin (林上智)'s avatar SZ Lin (林上智)

Fix PATH_MAX undeclared issue on hurd-i386 platform

parent 56c85cbf
From: =?utf-8?b?IlNaIExpbiAo5p6X5LiK5pm6KSI=?= <szlin@debian.org>
Date: Fri, 4 May 2018 15:40:33 +0800
Subject: Fix PATH_MAX undeclared issue on hurd-i386 platform
---
misc/plugutils.c | 3 +++
nasl/nasl_cmd_exec.c | 3 +++
2 files changed, 6 insertions(+)
diff --git a/misc/plugutils.c b/misc/plugutils.c
index 4600c03..7525ec4 100644
--- a/misc/plugutils.c
+++ b/misc/plugutils.c
@@ -31,6 +31,9 @@
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/param.h>
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>
diff --git a/nasl/nasl_cmd_exec.c b/nasl/nasl_cmd_exec.c
index 12a5669..7d36173 100644
--- a/nasl/nasl_cmd_exec.c
+++ b/nasl/nasl_cmd_exec.c
@@ -30,6 +30,9 @@
#include <sys/wait.h> /* for waitpid */
#include <sys/stat.h> /* for stat */
#include <sys/param.h> /* for MAXPATHLEN */
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
#include <unistd.h> /* for getcwd */
#include "../misc/plugutils.h" /* for find_in_path */
allow-radcli-in-addition-to-freeradius-client-to-provide-.patch
Fix-PATH_MAX-undeclared-issue-on-hurd-i386-platform.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment