mirror of
https://git.freebsd.org/ports.git
synced 2025-04-28 01:26:39 -04:00
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
This commit is contained in:
parent
4c00fb987e
commit
4fb33e13da
2 changed files with 19 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
||||||
PORTNAME= pbasic
|
PORTNAME= pbasic
|
||||||
PORTVERSION= 2.1
|
PORTVERSION= 2.1
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= lang
|
CATEGORIES= lang
|
||||||
MASTER_SITES= ftp://ftp.berklix.org/pub/FreeBSD/ports/distfiles/ \
|
MASTER_SITES= ftp://ftp.berklix.org/pub/FreeBSD/ports/distfiles/ \
|
||||||
http://www.berklix.com/~jhs/ftp/distfiles/
|
http://www.berklix.com/~jhs/ftp/distfiles/
|
||||||
|
|
18
lang/pbasic/files/patch-bas3.c
Normal file
18
lang/pbasic/files/patch-bas3.c
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue