mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-01-01 13:58:06 +00:00
oprofile: Fix build on musl
MAX_INPUT is defined in linux/limits.h, therefore include it Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
abbee9b35f
commit
0587a7c65a
|
|
@ -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<pver>\d+(\.\d+)+)/"
|
||||
UPSTREAM_CHECK_URI = "https://sourceforge.net/projects/oprofile/files/oprofile/"
|
||||
|
|
|
|||
|
|
@ -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 <raj.khem@gmail.com>
|
||||
--- a/libpe_utils/op_pe_utils.cpp
|
||||
+++ b/libpe_utils/op_pe_utils.cpp
|
||||
@@ -11,6 +11,7 @@
|
||||
*
|
||||
*/
|
||||
|
||||
+#include <linux/limits.h>
|
||||
#include <linux/perf_event.h>
|
||||
#include <dirent.h>
|
||||
#include <stdio.h>
|
||||
Loading…
Reference in New Issue
Block a user