diff --git a/cr-check.c b/cr-check.c index 82032a5b4..bfe40a150 100644 --- a/cr-check.c +++ b/cr-check.c @@ -84,9 +84,9 @@ static int check_prctl(void) unsigned int *tid_addr; int ret; - ret = sys_prctl(PR_GET_TID_ADDR, (unsigned long)&tid_addr, 0, 0, 0); + ret = sys_prctl(PR_GET_TID_ADDRESS, (unsigned long)&tid_addr, 0, 0, 0); if (ret) { - pr_msg("prctl: PR_GET_TID_ADDR is not supported\n"); + pr_msg("prctl: PR_GET_TID_ADDRESS is not supported\n"); return -1; } diff --git a/include/types.h b/include/types.h index ef2a2ef8b..de1b5332a 100644 --- a/include/types.h +++ b/include/types.h @@ -41,7 +41,7 @@ # define PR_SET_MM_AUXV 12 # define PR_SET_MM_EXE_FILE 13 -#define PR_GET_TID_ADDR 36 +#define PR_GET_TID_ADDRESS 40 /* fcntl */ #ifndef F_LINUX_SPECIFIC_BASE diff --git a/parasite.c b/parasite.c index 407376ad4..639494e69 100644 --- a/parasite.c +++ b/parasite.c @@ -358,7 +358,7 @@ static int dump_tid_addr(struct parasite_dump_tid_addr *args) parasite_status_t *st = &args->status; int ret; - ret = sys_prctl(PR_GET_TID_ADDR, (unsigned long) &args->tid_addr, 0, 0, 0); + ret = sys_prctl(PR_GET_TID_ADDRESS, (unsigned long) &args->tid_addr, 0, 0, 0); if (ret) { SET_PARASITE_RET(st, ret); return ret;