summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-devtools/perfetto/files/0001-fix-musl-build.patch
blob: 3b7ca951ae7beccad2a4c05a6dc1eb3ed322a13c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
From 485c21940eb0100a33b7efea40a83e7f79e765f8 Mon Sep 17 00:00:00 2001
From: Etienne Cordonnier <ecordonnier@snap.com>
Date: Sun, 22 Sep 2024 20:17:52 +0200
Subject: [PATCH] fix musl build

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
---
Upstream-Status: Pending

 sdk/perfetto.cc   | 1 -
 src/base/utils.cc | 1 -
 2 files changed, 2 deletions(-)

diff --git a/sdk/perfetto.cc b/sdk/perfetto.cc
index b10dd5aa92..2eb90f0d15 100644
--- a/sdk/perfetto.cc
+++ b/sdk/perfetto.cc
@@ -6558,7 +6558,6 @@ std::optional<int32_t> GetTimezoneOffsetMins() {
 
 #if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \
     PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID)
-#include <linux/prctl.h>
 #include <sys/prctl.h>
 
 #ifndef PR_GET_TAGGED_ADDR_CTRL
diff --git a/src/base/utils.cc b/src/base/utils.cc
index 0d9318c136..419c7dbc1a 100644
--- a/src/base/utils.cc
+++ b/src/base/utils.cc
@@ -40,7 +40,6 @@
 
 #if PERFETTO_BUILDFLAG(PERFETTO_OS_LINUX) || \
     PERFETTO_BUILDFLAG(PERFETTO_OS_ANDROID)
-#include <linux/prctl.h>
 #include <sys/prctl.h>
 
 #ifndef PR_GET_TAGGED_ADDR_CTRL
-- 
2.43.0