apparmor: gcc 13 compatibility fix
[feed/packages.git] / utils / apparmor / patches / 100-add-missing-cstdint-include.patch
1 From 64a64be7ffb5a84f27daa9f37ae8ad92800943d3 Mon Sep 17 00:00:00 2001
2 From: Sergei Trofimovich <slyich@gmail.com>
3 Date: Mon, 23 May 2022 23:12:31 +0100
4 Subject: [PATCH] parser/capability.h: add missing <cstdint> include
5
6 Without the change apparmor build fails on this week's gcc-13 snapshot as:
7
8 capability.h:66:6: error: variable or field '__debug_capabilities' declared void
9 66 | void __debug_capabilities(uint64_t capset, const char *name);
10 | ^~~~~~~~~~~~~~~~~~~~
11 capability.h:66:27: error: 'uint64_t' was not declared in this scope
12 66 | void __debug_capabilities(uint64_t capset, const char *name);
13 | ^~~~~~~~
14 capability.h:23:1: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
15 22 | #include <linux/capability.h>
16 +++ |+#include <cstdint>
17 23 |
18 ---
19 parser/capability.h | 1 +
20 1 file changed, 1 insertion(+)
21
22 --- a/parser/capability.h
23 +++ b/parser/capability.h
24 @@ -19,6 +19,8 @@
25 #ifndef __AA_CAPABILITY_H
26 #define __AA_CAPABILITY_H
27
28 +#include <cstdint>
29 +
30 #define NO_BACKMAP_CAP 0xff
31
32 #ifndef CAP_PERFMON