2021-06-17 15:59:32 +03:00
|
|
|
From 45bae28d3da6607d33d54f4b30a500f5249aadde Mon Sep 17 00:00:00 2001
|
2020-06-30 17:04:11 +03:00
|
|
|
From: Chen Qi <Qi.Chen@windriver.com>
|
|
|
|
Date: Mon, 25 Feb 2019 15:44:54 +0800
|
|
|
|
Subject: [PATCH] avoid redefinition of prctl_mm_map structure
|
|
|
|
|
|
|
|
Fix the following compile failure:
|
|
|
|
error: redefinition of 'struct prctl_mm_map'
|
|
|
|
|
|
|
|
Upstream-Status: Inappropriate [musl specific]
|
|
|
|
|
|
|
|
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
|
|
|
|
|
|
|
|
---
|
|
|
|
src/basic/missing_prctl.h | 2 ++
|
|
|
|
1 file changed, 2 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/src/basic/missing_prctl.h b/src/basic/missing_prctl.h
|
2021-06-17 15:59:32 +03:00
|
|
|
index ab851306ba..5547cad875 100644
|
2020-06-30 17:04:11 +03:00
|
|
|
--- a/src/basic/missing_prctl.h
|
|
|
|
+++ b/src/basic/missing_prctl.h
|
|
|
|
@@ -1,7 +1,9 @@
|
2021-06-17 15:59:32 +03:00
|
|
|
/* SPDX-License-Identifier: LGPL-2.1-or-later */
|
2020-06-30 17:04:11 +03:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
+#ifdef __GLIBC__
|
|
|
|
#include <linux/prctl.h>
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* 58319057b7847667f0c9585b9de0e8932b0fdb08 (4.3) */
|
|
|
|
#ifndef PR_CAP_AMBIENT
|