Commit 62194b15 authored by Laurent Dufour's avatar Laurent Dufour Committed by Pavel Emelyanov

build: conditional define of struct prctl_mm_map

The file include/prctl.h should define the struct prctl_mm_map only if
it is not already defined in the system include file linux/prctl.h.

The definition should be part of the '#ifndef PR_SET_MM_MAP' block
since this structure is not defined in that case.
Signed-off-by: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Reviewed-by: 's avatarChristopher Covington <cov@codeaurora.org>
Reviewed-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent e9aed2ed
...@@ -51,7 +51,6 @@ ...@@ -51,7 +51,6 @@
#ifndef PR_SET_MM_MAP #ifndef PR_SET_MM_MAP
# define PR_SET_MM_MAP 14 # define PR_SET_MM_MAP 14
# define PR_SET_MM_MAP_SIZE 15 # define PR_SET_MM_MAP_SIZE 15
#endif
struct prctl_mm_map { struct prctl_mm_map {
u64 start_code; u64 start_code;
...@@ -69,6 +68,7 @@ struct prctl_mm_map { ...@@ -69,6 +68,7 @@ struct prctl_mm_map {
u32 auxv_size; u32 auxv_size;
u32 exe_fd; u32 exe_fd;
}; };
#endif
#ifndef PR_GET_TID_ADDRESS #ifndef PR_GET_TID_ADDRESS
# define PR_GET_TID_ADDRESS 40 # define PR_GET_TID_ADDRESS 40
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment