mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
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:
@@ -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() {
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user