mirror of
https://git.yoctoproject.org/meta-security
synced 2026-05-08 17:19:34 +00:00
11dd919372
Signed-off-by: Armin Kuster <akuster808@gmail.com>
37 lines
1.1 KiB
Diff
37 lines
1.1 KiB
Diff
From 47263a3a74d7973e7a54b17db6aa903701468ffd Mon Sep 17 00:00:00 2001
|
|
From: Patrick Steinhardt <ps@pks.im>
|
|
Date: Sat, 3 Oct 2020 20:37:55 +0200
|
|
Subject: [PATCH] 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>
|
|
|
|
Upstream-Status: Backport
|
|
Signed-off-by: Armin Kuster <akuster808@gmail.com>
|
|
|
|
---
|
|
libraries/libapparmor/include/sys/apparmor.h | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/libraries/libapparmor/include/sys/apparmor.h b/libraries/libapparmor/include/sys/apparmor.h
|
|
index 32892d06..d70eff94 100644
|
|
--- a/libraries/libapparmor/include/sys/apparmor.h
|
|
+++ b/libraries/libapparmor/include/sys/apparmor.h
|
|
@@ -21,6 +21,7 @@
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <unistd.h>
|
|
+#include <sys/socket.h>
|
|
#include <sys/types.h>
|
|
|
|
#ifdef __cplusplus
|
|
--
|
|
2.17.1
|
|
|