Andrew Geissler | d583833 | 2022-05-27 11:33:10 -0500 | [diff] [blame] | 1 | From e1d0210b47906dd121f936f3181092835df6a95c Mon Sep 17 00:00:00 2001 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 2 | From: Chen Qi <Qi.Chen@windriver.com> |
| 3 | Date: Mon, 25 Feb 2019 15:44:54 +0800 |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 4 | Subject: [PATCH] avoid redefinition of prctl_mm_map structure |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 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> |
William A. Kennington III | ac69b48 | 2021-06-02 12:28:27 -0700 | [diff] [blame] | 12 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 13 | --- |
| 14 | src/basic/missing_prctl.h | 2 ++ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 15 | 1 file changed, 2 insertions(+) |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 16 | |
| 17 | diff --git a/src/basic/missing_prctl.h b/src/basic/missing_prctl.h |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 18 | index ab851306ba..5547cad875 100644 |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | --- a/src/basic/missing_prctl.h |
| 20 | +++ b/src/basic/missing_prctl.h |
| 21 | @@ -1,7 +1,9 @@ |
Andrew Geissler | d1e8949 | 2021-02-12 15:35:20 -0600 | [diff] [blame] | 22 | /* SPDX-License-Identifier: LGPL-2.1-or-later */ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 23 | #pragma once |
| 24 | |
| 25 | +#ifdef __GLIBC__ |
| 26 | #include <linux/prctl.h> |
| 27 | +#endif |
| 28 | |
| 29 | /* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */ |
| 30 | #ifndef PR_CAP_AMBIENT |