aboutsummaryrefslogtreecommitdiff
path: root/utils/apparmor/patches/100-add-missing-cstdint-include.patch
blob: ff60ee271335af3eca573fc37542b16cb2199634 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 64a64be7ffb5a84f27daa9f37ae8ad92800943d3 Mon Sep 17 00:00:00 2001
From: Sergei Trofimovich <slyich@gmail.com>
Date: Mon, 23 May 2022 23:12:31 +0100
Subject: [PATCH] parser/capability.h: add missing <cstdint> include

Without the change apparmor build fails on this week's gcc-13 snapshot as:

    capability.h:66:6: error: variable or field '__debug_capabilities' declared void
       66 | void __debug_capabilities(uint64_t capset, const char *name);
          |      ^~~~~~~~~~~~~~~~~~~~
    capability.h:66:27: error: 'uint64_t' was not declared in this scope
       66 | void __debug_capabilities(uint64_t capset, const char *name);
          |                           ^~~~~~~~
    capability.h:23:1: note: 'uint64_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
       22 | #include <linux/capability.h>
      +++ |+#include <cstdint>
       23 |
---
 parser/capability.h | 1 +
 1 file changed, 1 insertion(+)

--- a/parser/capability.h
+++ b/parser/capability.h
@@ -19,6 +19,8 @@
 #ifndef __AA_CAPABILITY_H
 #define __AA_CAPABILITY_H
 
+#include <cstdint>
+
 #define NO_BACKMAP_CAP 0xff
 
 #ifndef CAP_PERFMON