summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/psmisc/files
diff options
context:
space:
mode:
authorPaul Barker <paul@paulbarker.me.uk>2014-08-20 10:59:13 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-08-23 09:26:09 +0100
commite335d9519c883165e70cda5c1fde348391686e31 (patch)
treef39d72b5e04212b974ef21b4e8b6b724302050d5 /meta/recipes-extended/psmisc/files
parent0c6c0b655536d9ed64074a7664999b9deaa63aa1 (diff)
downloadpoky-e335d9519c883165e70cda5c1fde348391686e31.tar.gz
psmisc: Fix musl build failure
As in procps, we just need to include <limits.h> for PATH_MAX. (From OE-Core rev: 914c285de743af04b9dd1cd6436d6b672a4ddb09) Signed-off-by: Paul Barker <paul@paulbarker.me.uk> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/psmisc/files')
-rw-r--r--meta/recipes-extended/psmisc/files/0002-Include-limits.h-for-PATH_MAX.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/meta/recipes-extended/psmisc/files/0002-Include-limits.h-for-PATH_MAX.patch b/meta/recipes-extended/psmisc/files/0002-Include-limits.h-for-PATH_MAX.patch
new file mode 100644
index 0000000000..d8d148218b
--- /dev/null
+++ b/meta/recipes-extended/psmisc/files/0002-Include-limits.h-for-PATH_MAX.patch
@@ -0,0 +1,29 @@
1From aa66afecd8ba9cc4139f25ab15ec315173413a7d Mon Sep 17 00:00:00 2001
2From: Paul Barker <paul@paulbarker.me.uk>
3Date: Wed, 20 Aug 2014 10:31:37 +0000
4Subject: [PATCH] Include <limits.h> for PATH_MAX
5
6When building against musl libc, PATH_MAX is defined in <limits.h>.
7
8Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
9
10Upstream-status: Pending
11---
12 src/pstree.c | 1 +
13 1 file changed, 1 insertion(+)
14
15diff --git a/src/pstree.c b/src/pstree.c
16index 071e6c4..0d28260 100644
17--- a/src/pstree.c
18+++ b/src/pstree.c
19@@ -41,6 +41,7 @@
20 #include <sys/types.h>
21 #include <sys/stat.h>
22 #include <sys/ioctl.h>
23+#include <limits.h>
24
25 #include "i18n.h"
26 #include "comm.h"
27--
282.0.4
29