FreeBSD Bugzilla – Attachment 253919 Details for
Bug 281784
lang/pbasic: errno fixes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
errno fixes and portrevsion bump
0006-lang-pbasic-include-errno.h-for-errno.patch (text/plain), 1.36 KB, created by
Brooks Davis
on 2024-09-30 22:31:17 UTC
(
hide
)
Description:
errno fixes and portrevsion bump
Filename:
MIME Type:
Creator:
Brooks Davis
Created:
2024-09-30 22:31:17 UTC
Size:
1.36 KB
patch
obsolete
>From 8625285a27861f0b002afd14599f1070989d4c3a Mon Sep 17 00:00:00 2001 >From: Brooks Davis <brooks@FreeBSD.org> >Date: Mon, 30 Sep 2024 16:56:09 +0100 >Subject: [PATCH 6/8] lang/pbasic: include errno.h for errno > >errno must be accessed by a macro from errno.h. >--- > lang/pbasic/Makefile | 2 +- > lang/pbasic/files/patch-bas3.c | 18 ++++++++++++++++++ > 2 files changed, 19 insertions(+), 1 deletion(-) > create mode 100644 lang/pbasic/files/patch-bas3.c > >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 >-- >2.45.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 281784
: 253919