mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
games-arcade/xboing: fix build with clang16
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
37
games-arcade/xboing/files/xboing-2.4-clang16.patch
Normal file
37
games-arcade/xboing/files/xboing-2.4-clang16.patch
Normal file
@@ -0,0 +1,37 @@
|
||||
Ideally would want to enable -DNeedFunctionPrototypes=1
|
||||
but it leads to more issues not handled here.
|
||||
|
||||
https://bugs.gentoo.org/870412
|
||||
--- a/eyedude.c
|
||||
+++ b/eyedude.c
|
||||
@@ -51,2 +51,3 @@
|
||||
#include <stdio.h>
|
||||
+#include <stdlib.h>
|
||||
#include <math.h>
|
||||
--- a/include/intro.h
|
||||
+++ b/include/intro.h
|
||||
@@ -84,2 +84,3 @@
|
||||
void DrawIntroTitle(Display *display, Window window, int x, int y);
|
||||
+void HandleBlink(Display *display, Window window);
|
||||
#else
|
||||
@@ -92,2 +93,3 @@
|
||||
void DoIntroTitle();
|
||||
+void HandleBlink();
|
||||
#endif
|
||||
--- a/include/level.h
|
||||
+++ b/include/level.h
|
||||
@@ -74,2 +74,3 @@
|
||||
void DisplayLevelInfo(Display *display, Window window, u_long level);
|
||||
+void DisplayLevelNumber(Display *display, Window window, u_long level);
|
||||
void CheckGameRules(Display *display, Window window);
|
||||
@@ -113,2 +114,3 @@
|
||||
void DisplayLevelInfo();
|
||||
+void DisplayLevelNumber();
|
||||
void CheckGameRules();
|
||||
--- a/main.c
|
||||
+++ b/main.c
|
||||
@@ -231,3 +231,3 @@
|
||||
{
|
||||
- static oldx = 0;
|
||||
+ static int oldx = 0;
|
||||
int x, y;
|
||||
@@ -17,8 +17,11 @@ KEYWORDS="amd64 ~x86"
|
||||
|
||||
RDEPEND="
|
||||
acct-group/gamestat
|
||||
x11-libs/libX11
|
||||
x11-libs/libXpm"
|
||||
DEPEND="${RDEPEND}"
|
||||
DEPEND="
|
||||
${RDEPEND}
|
||||
x11-base/xorg-proto"
|
||||
BDEPEND="
|
||||
app-text/rman
|
||||
sys-devel/gcc
|
||||
@@ -29,6 +32,7 @@ PATCHES=(
|
||||
"${WORKDIR}"/${P}-debian.patch
|
||||
"${FILESDIR}"/${P}-buffer.patch
|
||||
"${FILESDIR}"/${P}-sleep.patch
|
||||
"${FILESDIR}"/${P}-clang16.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
Reference in New Issue
Block a user