app-admin/lnav: fix build w/ gcc 13

Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-01-21 18:18:25 +00:00
parent ce7a4a2ca9
commit 69504c316c
2 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
https://github.com/tstack/lnav/pull/1112
From e25d3e3c69fcf57bbaec2333846b9a43c4d1fc90 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Sat, 21 Jan 2023 18:11:20 +0000
Subject: [PATCH] Fix build with GCC 13 (add missing <cstdint> include)
GCC 13 (as usual for new compiler releases) shuffles around some
internal includes and so <cstdint> is no longer transitively included.
Explicitly include <cstdint> for uint32_t.
Signed-off-by: Sam James <sam@gentoo.org>
--- a/src/base/lnav_log.hh
+++ b/src/base/lnav_log.hh
@@ -32,6 +32,7 @@
#ifndef lnav_log_hh
#define lnav_log_hh
+#include <cstdint>
#include <string>
#include <stdio.h>
--
2.39.1

View File

@@ -36,6 +36,7 @@ DOCS=( AUTHORS NEWS.md README )
PATCHES=(
"${FILESDIR}"/${PN}-0.11.0-disable-tests.patch
"${FILESDIR}"/0001-Fix-build-with-GCC-13-add-missing-cstdint-include.patch
)
src_prepare() {