Skip to content

Commit

Permalink
games-arcade/berusky: fix build w/ gcc 12
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/890361
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Feb 6, 2023
1 parent 804e4d5 commit a9e380d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion games-arcade/berusky/berusky-1.7.1-r2.ebuild
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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() {
Expand Down
22 changes: 22 additions & 0 deletions games-arcade/berusky/files/berusky-1.7.1-missing-includes.patch
Original file line number Diff line number Diff line change
@@ -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"

0 comments on commit a9e380d

Please sign in to comment.