mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-03 06:48:20 +00:00
fix(main/sssnake): Fix building with current clang
Fix the following build error: > error: call to undeclared function 'addwstr'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
This commit is contained in:
packages/sssnake
@ -3,6 +3,7 @@ TERMUX_PKG_DESCRIPTION="cli snake game that plays itself"
|
||||
TERMUX_PKG_LICENSE="MIT"
|
||||
TERMUX_PKG_MAINTAINER="@termux"
|
||||
TERMUX_PKG_VERSION=0.3.2
|
||||
TERMUX_PKG_REVISION=1
|
||||
TERMUX_PKG_SRCURL=https://github.com/AngelJumbo/sssnake/archive/refs/tags/v${TERMUX_PKG_VERSION}.tar.gz
|
||||
TERMUX_PKG_SHA256=ffd5f012ed664d4d72df03af858c8984c60985ef680b760bb3f37d4948f2a3c0
|
||||
TERMUX_PKG_DEPENDS="ncurses"
|
||||
|
11
packages/sssnake/draw.h.patch
Normal file
11
packages/sssnake/draw.h.patch
Normal file
@ -0,0 +1,11 @@
|
||||
diff -u -r ../sssnake-0.3.2/draw.h ./draw.h
|
||||
--- ../sssnake-0.3.2/draw.h 2022-10-09 06:17:14.000000000 +0000
|
||||
+++ ./draw.h 2024-05-15 09:56:17.567451156 +0000
|
||||
@@ -3,6 +3,7 @@
|
||||
|
||||
#include "snake.h"
|
||||
#include "structs.h"
|
||||
+#define NCURSES_WIDECHAR 1
|
||||
#include <curses.h>
|
||||
#include <locale.h>
|
||||
#include <wchar.h>
|
Reference in New Issue
Block a user