From 0587a7c65a6dd33eab6c9a21bf8be384d85d0b06 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 12 Mar 2021 23:43:32 -0800 Subject: [PATCH] oprofile: Fix build on musl MAX_INPUT is defined in linux/limits.h, therefore include it Signed-off-by: Khem Raj --- meta-oe/recipes-kernel/oprofile/oprofile.inc | 1 + .../oprofile/oprofile/include_limits.patch | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch diff --git a/meta-oe/recipes-kernel/oprofile/oprofile.inc b/meta-oe/recipes-kernel/oprofile/oprofile.inc index 0e1e2ed8c9..0863a8fd36 100644 --- a/meta-oe/recipes-kernel/oprofile/oprofile.inc +++ b/meta-oe/recipes-kernel/oprofile/oprofile.inc @@ -26,6 +26,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \ file://0001-Add-rmb-definition-for-NIOS2-architecture.patch \ file://0001-replace-sym_iterator-0-with-sym_iterator.patch \ file://0001-Use-new-bfd-APIs-from-2.34.patch \ + file://include_limits.patch \ " UPSTREAM_CHECK_REGEX = "oprofile-(?P\d+(\.\d+)+)/" UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/" diff --git a/meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch b/meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch new file mode 100644 index 0000000000..5aabfe78eb --- /dev/null +++ b/meta-oe/recipes-kernel/oprofile/oprofile/include_limits.patch @@ -0,0 +1,17 @@ +include linux/limits.h for MAX_INPUT + +Fixes +op_pe_utils.cpp:533:19: error: 'MAX_INPUT' was not declared in this scope + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- a/libpe_utils/op_pe_utils.cpp ++++ b/libpe_utils/op_pe_utils.cpp +@@ -11,6 +11,7 @@ + * + */ + ++#include + #include + #include + #include