Patrick Williams | 864cc43 | 2023-02-09 14:54:44 -0600 | [diff] [blame^] | 1 | From 3d076ea588eb3c7f334133b4c31172a14beadf5b Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Thu, 2 Feb 2023 20:18:27 -0800 |
| 4 | Subject: [PATCH] Add <cstdint> for uintXX_t types |
| 5 | |
| 6 | gcc 13 moved some includes around and as a result <cstdint> is no |
| 7 | longer transitively included [1]. Explicitly include it |
| 8 | for uintXX_t. |
| 9 | |
| 10 | [1] https://gcc.gnu.org/gcc-13/porting_to.html#header-dep-changes |
| 11 | |
| 12 | Upstream-Status: Submitted [https://github.com/falcosecurity/libs/pull/862] |
| 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 14 | --- |
| 15 | userspace/libsinsp/filter/parser.h | 1 + |
| 16 | userspace/libsinsp/filter_value.h | 1 + |
| 17 | 2 files changed, 2 insertions(+) |
| 18 | |
| 19 | --- a/userspace/libsinsp/filter/parser.h |
| 20 | +++ b/userspace/libsinsp/filter/parser.h |
| 21 | @@ -18,6 +18,7 @@ limitations under the License. |
| 22 | #pragma once |
| 23 | |
| 24 | #include "ast.h" |
| 25 | +#include <cstdint> |
| 26 | |
| 27 | // |
| 28 | // Context-free Grammar for Sinsp Filters |
| 29 | --- a/userspace/libsinsp/filter_value.h |
| 30 | +++ b/userspace/libsinsp/filter_value.h |
| 31 | @@ -18,6 +18,7 @@ limitations under the License. |
| 32 | #pragma once |
| 33 | |
| 34 | #include <string.h> |
| 35 | +#include <cstdint> |
| 36 | #include <utility> |
| 37 | |
| 38 | // Used for CO_IN/CO_PMATCH filterchecks using PT_CHARBUFs to allow |