blob: 1fcba7af0892d0edcdd95751778e539ff83b8608 [file] [log] [blame]
Andrew Geisslerd5838332022-05-27 11:33:10 -05001From e1d0210b47906dd121f936f3181092835df6a95c 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
William A. Kennington IIIac69b482021-06-02 12:28:27 -07004Subject: [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>
William A. Kennington IIIac69b482021-06-02 12:28:27 -070012
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 Geisslerd1e89492021-02-12 15:35:20 -060018index ab851306ba..5547cad875 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 Geisslerd1e89492021-02-12 15:35:20 -060022 /* SPDX-License-Identifier: LGPL-2.1-or-later */
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