context
context copied to clipboard
Fix shadowstack syscall number redefinition
__NR_map_shadow_stack is defined to 453 (not 451) on Ubuntu 24.04 with Linux kernel 6.8.0-44, gcc 13.2.0 and glibc 2.39. This causes warnings about macro redefinition when Boost.Fiber is compiled.
Change the syscall number to 453 and only define the macro if it has not been defined already. Also include unistd.h for syscall() and __NR_* constants.
Also convert tabs to spaces and trim trailing spaces.
Fixes https://github.com/boostorg/context/issues/263. Fixes https://github.com/boostorg/context/issues/269.