Closed dacyberduck closed 2 years ago
It seems like the small snippet in the installation wiki helps fix the issue. It was my stupidity that I completely ignored that line.
Does fixing this issue in our linux-headers package mitigate the need to use the snippet in the installation guide?
swab.h uses __always_inline without including the header where it is defined, this is exposed by musl based distributions where this macro is not defined by system C library headers unlike glibc where it is defined in sys/cdefs.h and that header gets pulled in indirectly via
features.h -> sys/cdefs.h
and features.h gets pulled in a lot of headers. Therefore it may work in cases where features.h is includes but not otherwise.
The issue is generally encountered when compiling newer kernels.
Adding linux/stddef.h here ensures that __always_inline is always defined independent of which C library is used in userspace