blob: 5ca5386289eba0e5271815ae7e1cbd7211df4b22 [file] [log] [blame]
Andrew Geissler595f6302022-01-24 19:11:47 +00001From d95330f328c23c1cd6c51aeca43f081746cf2899 Mon Sep 17 00:00:00 2001
2From: Chen Qi <Qi.Chen@windriver.com>
3Date: Mon, 25 Feb 2019 15:44:54 +0800
4Subject: [PATCH] avoid redefinition of prctl_mm_map structure
5
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>
12
13---
14 src/basic/missing_prctl.h | 2 ++
15 1 file changed, 2 insertions(+)
16
17diff --git a/src/basic/missing_prctl.h b/src/basic/missing_prctl.h
18index ab851306ba..5547cad875 100644
19--- a/src/basic/missing_prctl.h
20+++ b/src/basic/missing_prctl.h
21@@ -1,7 +1,9 @@
22 /* SPDX-License-Identifier: LGPL-2.1-or-later */
23 #pragma once
24
25+#ifdef __GLIBC__
26 #include <linux/prctl.h>
27+#endif
28
29 /* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */
30 #ifndef PR_CAP_AMBIENT