libapparmor: add missing include for socklen_t

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>
This commit is contained in:
Patrick Steinhardt 2020-10-03 20:37:55 +02:00 committed by John Johansen
parent 92a6360570
commit ab49c3dbb0

View file

@ -20,6 +20,7 @@
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <sys/socket.h>
#include <sys/types.h> #include <sys/types.h>
__BEGIN_DECLS __BEGIN_DECLS