1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

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
This commit is contained in:
Brooks Davis 2024-09-30 16:56:09 +01:00
parent 87071de424
commit d4400f87b2
3 changed files with 39 additions and 1 deletions

View File

@ -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}

View File

@ -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;

View File

@ -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;