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:
parent
87071de424
commit
d4400f87b2
@ -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}
|
||||
|
19
games/xtrojka/files/patch-scores.c
Normal file
19
games/xtrojka/files/patch-scores.c
Normal 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;
|
||||
|
19
games/xtrojka/files/patch-slist.c
Normal file
19
games/xtrojka/files/patch-slist.c
Normal 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;
|
Loading…
Reference in New Issue
Block a user