git: d4400f87b255 - main - games/xtrojka: include errno.h for errno
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Oct 2024 20:12:49 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=d4400f87b255ff235ac12fec2c7d502858ebae93 commit d4400f87b255ff235ac12fec2c7d502858ebae93 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2024-09-30 15:56:09 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2024-10-01 20:11:46 +0000 games/xtrojka: include errno.h for errno errno must be accessed by a macro from errno.h. PR: 281786 Approved by: portmgr (build fix blanket), mikael --- games/xtrojka/Makefile | 2 +- games/xtrojka/files/patch-scores.c | 19 +++++++++++++++++++ games/xtrojka/files/patch-slist.c | 19 +++++++++++++++++++ 3 files changed, 39 insertions(+), 1 deletion(-) diff --git a/games/xtrojka/Makefile b/games/xtrojka/Makefile index 10cc1ee9df26..afdd323fc4f1 100644 --- a/games/xtrojka/Makefile +++ b/games/xtrojka/Makefile @@ -1,6 +1,6 @@ PORTNAME= xtrojka PORTVERSION= 1.2.3 -PORTREVISION= 4 +PORTREVISION= 5 CATEGORIES= games MASTER_SITES= SUNSITE/games/arcade/tetris DISTNAME= ${PORTNAME}${PORTVERSION:C/\.//g} diff --git a/games/xtrojka/files/patch-scores.c b/games/xtrojka/files/patch-scores.c new file mode 100644 index 000000000000..0b726e648963 --- /dev/null +++ b/games/xtrojka/files/patch-scores.c @@ -0,0 +1,19 @@ +--- scores.c.orig ++++ scores.c +@@ -15,6 +15,7 @@ + + #include "_strdefs.h" + ++#include <errno.h> + #include <stdio.h> + #include <sys/types.h> + #include <sys/time.h> +@@ -36,8 +37,6 @@ + + extern flag is_wizard; + extern time_t last_time; +- +-extern int errno; + + int position; + diff --git a/games/xtrojka/files/patch-slist.c b/games/xtrojka/files/patch-slist.c new file mode 100644 index 000000000000..f040bb90ca7f --- /dev/null +++ b/games/xtrojka/files/patch-slist.c @@ -0,0 +1,19 @@ +--- slist.c.orig ++++ slist.c +@@ -11,6 +11,7 @@ + + #include "debug.h" + ++#include <errno.h> + #include <stdio.h> + #include <sys/types.h> + #include <sys/stat.h> +@@ -38,8 +39,6 @@ + extern SCORES scores[NUMSCORES]; + extern SCORES old_scores[NUMSCORES]; + extern SCORES cur; +- +-extern int errno; + + extern int position; + extern GAME_STATE game_state;