blob: 7dacc3683737fd0fc5e108c12bb2b4e0d3961dec [file] [log] [blame]
Andrew Geissler706d5aa2021-02-12 15:55:30 -06001From 6364ff5534678c158a7fb8d4e50d0a6ce72c1ad8 Mon Sep 17 00:00:00 2001
Brad Bishop19323692019-04-05 15:28:33 -04002From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 25 Feb 2019 15:44:54 +0800
Andrew Geissler706d5aa2021-02-12 15:55:30 -06004Subject: [PATCH] avoid redefinition of prctl_mm_map structure
Brad Bishop19323692019-04-05 15:28:33 -04005
6Fix the following compile failure:
7error: redefinition of 'struct prctl_mm_map'
8
9Upstream-Status: Inappropriate [musl specific]
10
11Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Andrew Geissler706d5aa2021-02-12 15:55:30 -060012
Brad Bishop19323692019-04-05 15:28:33 -040013---
14 src/basic/missing_prctl.h | 2 ++
Brad Bishopc342db32019-05-15 21:57:59 -040015 1 file changed, 2 insertions(+)
Brad Bishop19323692019-04-05 15:28:33 -040016
17diff --git a/src/basic/missing_prctl.h b/src/basic/missing_prctl.h
Andrew Geissler706d5aa2021-02-12 15:55:30 -060018index f80cd17f346b..47e489354053 100644
Brad Bishop19323692019-04-05 15:28:33 -040019--- a/src/basic/missing_prctl.h
20+++ b/src/basic/missing_prctl.h
21@@ -1,7 +1,9 @@
Andrew Geissler706d5aa2021-02-12 15:55:30 -060022 /* SPDX-License-Identifier: LGPL-2.1+ */
Brad Bishop19323692019-04-05 15:28:33 -040023 #pragma once
24
25+#ifdef __GLIBC__
26 #include <linux/prctl.h>
27+#endif
28
29 /* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */
30 #ifndef PR_CAP_AMBIENT