0018-avoid-redefinition-of-prctl_mm_map-structure.patch 840 B

12345678910111213141516171819202122232425262728293031
  1. From e1d0210b47906dd121f936f3181092835df6a95c 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] avoid redefinition of prctl_mm_map structure
  5. Fix the following compile failure:
  6. error: redefinition of 'struct prctl_mm_map'
  7. Upstream-Status: Inappropriate [musl specific]
  8. Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
  9. ---
  10. src/basic/missing_prctl.h | 2 ++
  11. 1 file changed, 2 insertions(+)
  12. diff --git a/src/basic/missing_prctl.h b/src/basic/missing_prctl.h
  13. index ab851306ba..5547cad875 100644
  14. --- a/src/basic/missing_prctl.h
  15. +++ b/src/basic/missing_prctl.h
  16. @@ -1,7 +1,9 @@
  17. /* SPDX-License-Identifier: LGPL-2.1-or-later */
  18. #pragma once
  19. +#ifdef __GLIBC__
  20. #include <linux/prctl.h>
  21. +#endif
  22. /* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */
  23. #ifndef PR_CAP_AMBIENT