From a6082255ac89d1c86f9039fe4fcccfcfb44c3fa0 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 29 Apr 2018 21:59:55 +0000 Subject: [PATCH] xlat: fix MCL_* fallback definitions on alpha, ppc, ppc64, and sparc On these architectures, MCL_* constants are different. * xlat/socketlayers.in [__alpha__ || __powerpc__ || __powerpc64__ || __sparc__] (MCL_CURRENT, MCL_FUTURE, MCL_ONFAULT): Define to 0x2000, 0x4000, and 0x8000, respectively. --- xlat/mlockall_flags.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xlat/mlockall_flags.in b/xlat/mlockall_flags.in index a39d7ba0..d9ad7afd 100644 --- a/xlat/mlockall_flags.in +++ b/xlat/mlockall_flags.in @@ -1,3 +1,9 @@ +#if defined __alpha__ || defined __powerpc__ || defined __powerpc64__ || defined __sparc__ +MCL_CURRENT 0x2000 +MCL_FUTURE 0x4000 +MCL_ONFAULT 0x8000 +#else MCL_CURRENT 1 MCL_FUTURE 2 MCL_ONFAULT 4 +#endif -- 2.40.0