games-arcade/berusky: fix build w/ gcc 12

Closes: https://bugs.gentoo.org/890361
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2023-02-06 21:59:56 +00:00
parent 804e4d5811
commit a9e380dae8
2 changed files with 24 additions and 1 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -26,6 +26,7 @@ BDEPEND="virtual/pkgconfig"
PATCHES=(
"${FILESDIR}"/${PN}-1.7.1-r2-gentoo.patch
"${FILESDIR}"/${PN}-1.7.1-missing-includes.patch
)
src_prepare() {

View File

@@ -0,0 +1,22 @@
https://bugs.gentoo.org/890361
--- a/src/level_game.cpp
+++ b/src/level_game.cpp
@@ -27,6 +27,8 @@
#include "portability.h"
+#include <cassert>
+#include <cstddef>
#ifdef LINUX
#include <endian.h>
#endif // LINUX
--- a/src/level_game.h
+++ b/src/level_game.h
@@ -28,6 +28,7 @@
#ifndef __LEVEL_GAME_H__
#define __LEVEL_GAME_H__
+#include <cassert>
#include <time.h>
#include "stack.h"