diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-11-19 22:24:02 +0100 |
---|---|---|
committer | Leo <thinkabit.ukim@gmail.com> | 2019-11-19 22:24:19 +0100 |
commit | b78188325ee5f07498f43bc60cc93b1ba785f13c (patch) | |
tree | 9d66602acaa5bbfed6022def5d46797479b8f103 /main/psmisc/include_limits.patch | |
parent | 9d13a86c8caced107d393081fb6a4fed9d412bc1 (diff) | |
download | aports-b78188325ee5f07498f43bc60cc93b1ba785f13c.tar.bz2 aports-b78188325ee5f07498f43bc60cc93b1ba785f13c.tar.xz |
main/psmisc: move from community
Diffstat (limited to 'main/psmisc/include_limits.patch')
-rw-r--r-- | main/psmisc/include_limits.patch | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/main/psmisc/include_limits.patch b/main/psmisc/include_limits.patch new file mode 100644 index 0000000000..1b474bc8f6 --- /dev/null +++ b/main/psmisc/include_limits.patch @@ -0,0 +1,45 @@ +Author: Breno Leitao <brenohl@br.ibm.com> +Date: Thu Apr 6 13:59:57 2017 -0300 + + peekfd: Include headers for ppc64 + + Currently peekfd fails to build on ppc64le architecture with musl + because it does not find reference for __WORDSIZE. + + This patch just includes reference for this macro if it was not + previously defined. + +Index: psmisc-22.21/src/peekfd.c +=================================================================== +--- psmisc-22.21.orig/src/peekfd.c ++++ psmisc-22.21/src/peekfd.c +@@ -37,6 +37,14 @@ + + #include "i18n.h" + ++#if !defined(PATH_MAX) ++#include <limits.h> ++#endif ++ ++#if !defined(__WORDSIZE) ++#include <bits/reg.h> ++#endif ++ + #ifdef I386 + #define REG_ORIG_ACCUM orig_eax + #define REG_ACCUM eax +Index: psmisc-22.21/src/pstree.c +=================================================================== +--- psmisc-22.21.orig/src/pstree.c ++++ psmisc-22.21/src/pstree.c +@@ -45,6 +45,10 @@ + #include "i18n.h" + #include "comm.h" + ++#if !defined(PATH_MAX) ++#include <limits.h> ++#endif ++ + #ifdef WITH_SELINUX + #include <selinux/selinux.h> + #else |