Brad Bishop | e42b3e3 | 2020-01-15 22:08:42 -0500 | [diff] [blame^] | 1 | From 3fbf61d54b82fc9bf21d8039bfd89dc9efc5bbcd Mon Sep 17 00:00:00 2001 |
| 2 | From: Chen Qi <Qi.Chen@windriver.com> |
| 3 | Date: Mon, 25 Feb 2019 15:44:54 +0800 |
| 4 | Subject: [PATCH 21/24] avoid redefinition of prctl_mm_map structure |
| 5 | |
| 6 | Fix the following compile failure: |
| 7 | error: redefinition of 'struct prctl_mm_map' |
| 8 | |
| 9 | Upstream-Status: Inappropriate [musl specific] |
| 10 | |
| 11 | Signed-off-by: Chen Qi <Qi.Chen@windriver.com> |
| 12 | --- |
| 13 | src/basic/missing_prctl.h | 2 ++ |
| 14 | 1 file changed, 2 insertions(+) |
| 15 | |
| 16 | diff --git a/src/basic/missing_prctl.h b/src/basic/missing_prctl.h |
| 17 | index f80cd17..47e4893 100644 |
| 18 | --- a/src/basic/missing_prctl.h |
| 19 | +++ b/src/basic/missing_prctl.h |
| 20 | @@ -1,7 +1,9 @@ |
| 21 | /* SPDX-License-Identifier: LGPL-2.1+ */ |
| 22 | #pragma once |
| 23 | |
| 24 | +#ifdef __GLIBC__ |
| 25 | #include <linux/prctl.h> |
| 26 | +#endif |
| 27 | |
| 28 | /* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */ |
| 29 | #ifndef PR_CAP_AMBIENT |
| 30 | -- |
| 31 | 2.11.0 |
| 32 | |