git: 4fb33e13da04 - main - lang/pbasic: include errno.h for errno
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Oct 2024 20:12:47 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=4fb33e13da045dfe3a59b791c0f556e5663b8f3e commit 4fb33e13da045dfe3a59b791c0f556e5663b8f3e 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 lang/pbasic: include errno.h for errno errno must be accessed by a macro from errno.h. PR: 281784 Approved by: portmgr (build fix blanket), mikael --- lang/pbasic/Makefile | 2 +- lang/pbasic/files/patch-bas3.c | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/lang/pbasic/Makefile b/lang/pbasic/Makefile index ffd2e45ad2ac..f3d16f8cce5f 100644 --- a/lang/pbasic/Makefile +++ b/lang/pbasic/Makefile @@ -1,6 +1,6 @@ PORTNAME= pbasic PORTVERSION= 2.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= lang MASTER_SITES= ftp://ftp.berklix.org/pub/FreeBSD/ports/distfiles/ \ http://www.berklix.com/~jhs/ftp/distfiles/ diff --git a/lang/pbasic/files/patch-bas3.c b/lang/pbasic/files/patch-bas3.c new file mode 100644 index 000000000000..47ba91acc224 --- /dev/null +++ b/lang/pbasic/files/patch-bas3.c @@ -0,0 +1,18 @@ +--- bas3.c.orig ++++ bas3.c +@@ -2,6 +2,7 @@ + * BASIC by Phil Cockcroft + */ + #include "bas.h" ++#include <errno.h> + + /* + * This file contains the numeric evaluation routines and some +@@ -1513,7 +1514,6 @@ + */ + #define MAX_SYS_ARGS 6 + +-extern int errno; + #ifdef __STDC__ + extern int syscall(int, ...); + #else