mirror of
https://gitlab.com/apparmor/apparmor
synced 2025-10-19 14:36:05 +00:00
While `include/sys/apparmor.h` makes use of `socklen_t`, it doesn't
include the `<sys/socket.h>` header to make its declaration available.
While this works on systems using glibc via transitive includes, it
breaks compilation on musl libc.
Fix the issue by including the header.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
(cherry picked from commit 47263a3a74
)
Signed-off-by: John Johansen <john.johansen@canonical.com>