mirror of
git://git.openembedded.org/meta-openembedded
synced 2026-09-30 04:23:58 +00:00
oprofile: Fix configure check for perf_events support
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
d40f392732
commit
c49b8b8778
@ -0,0 +1,28 @@
|
|||||||
|
From 46f0aadf80d5e28f587149b6e90c3ba005971f6e Mon Sep 17 00:00:00 2001
|
||||||
|
From: Khem Raj <raj.khem@gmail.com>
|
||||||
|
Date: Fri, 2 Sep 2022 19:22:17 -0700
|
||||||
|
Subject: [PATCH] configure: Include unistd.h for getpid API
|
||||||
|
|
||||||
|
This fixes the check for perf events support in configure
|
||||||
|
|
||||||
|
Upstream-Status: Pending
|
||||||
|
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||||
|
---
|
||||||
|
configure.ac | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index e4f4024..3384628 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -119,6 +119,7 @@ if test "$kernel_may_have_perf_events_support" = "yes"; then
|
||||||
|
#include <asm/unistd.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
#include <string.h>
|
||||||
|
+ #include <unistd.h>
|
||||||
|
]],
|
||||||
|
[[struct perf_event_attr attr;
|
||||||
|
pid_t pid;
|
||||||
|
--
|
||||||
|
2.37.3
|
||||||
|
|
||||||
@ -30,6 +30,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/${BPN}-${PV}.tar.gz \
|
|||||||
file://0008-include-linux-limits.h-for-MAX_INPUT.patch \
|
file://0008-include-linux-limits.h-for-MAX_INPUT.patch \
|
||||||
file://0009-Prevent-running-check-tests-on-host-if-cross-compili.patch \
|
file://0009-Prevent-running-check-tests-on-host-if-cross-compili.patch \
|
||||||
file://0010-oprofile-Determine-the-root-home-directory-dynamical.patch \
|
file://0010-oprofile-Determine-the-root-home-directory-dynamical.patch \
|
||||||
|
file://0001-configure-Include-unistd.h-for-getpid-API.patch \
|
||||||
"
|
"
|
||||||
SRC_URI[sha256sum] = "7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412"
|
SRC_URI[sha256sum] = "7ba06f99d7c188389d20d1d5e53ee690c7733f87aa9af62bd664fa0ca235a412"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user