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.
This commit is contained in:
Дмитрий Левин 2018-04-29 21:59:55 +00:00
parent c23a79e5b9
commit a6082255ac

View File

@ -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