summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCraig Small <csmall@enc.com.au>2014-06-03 22:04:49 +1000
committerCraig Small <csmall@enc.com.au>2014-06-03 22:04:49 +1000
commit0defe7e2ea45e1b14adaedde9b371ec7a8b00a84 (patch)
treea7d92e6862c1f8e844123b9218ce01dc2a86071d
parent62e2d2d88e471390641bdb686a42598edddb45ab (diff)
define PATH_MAX for freebsd
-rw-r--r--ChangeLog1
-rw-r--r--src/pstree.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1c88522..61d7754 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@ Changes in 22.22
* Fixed typo in fuser which has -M on Debian #740275
* pstree by default doesn't show threadnames, use -t to show
as it disables compaction. SF Patch#33
+ * PATH_MAX defined in pstree for FreeBSD Debian #750405
Changes in 22.21
================
diff --git a/src/pstree.c b/src/pstree.c
index 6d6e8db..b5b71cd 100644
--- a/src/pstree.c
+++ b/src/pstree.c
@@ -45,6 +45,10 @@
#include "i18n.h"
#include "comm.h"
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif /* PATH_MAX */
+
#ifdef WITH_SELINUX
#include <selinux/selinux.h>
#else