git: bb1a2c2c421e - main - math/xspread: include errno.h for errno
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Sep 2024 22:15:17 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=bb1a2c2c421e75da9725c273c68126ef7eb99305 commit bb1a2c2c421e75da9725c273c68126ef7eb99305 Author: Brooks Davis <brooks@FreeBSD.org> AuthorDate: 2024-09-30 15:56:09 +0000 Commit: Brooks Davis <brooks@FreeBSD.org> CommitDate: 2024-09-30 22:13:43 +0000 math/xspread: include errno.h for errno errno must be accessed by a macro from errno.h. --- math/xspread/Makefile | 2 +- math/xspread/files/patch-interp.c | 13 +++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/math/xspread/Makefile b/math/xspread/Makefile index e59edda7b823..8025c603540e 100644 --- a/math/xspread/Makefile +++ b/math/xspread/Makefile @@ -1,6 +1,6 @@ PORTNAME= xspread PORTVERSION= 3.1.1c -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= math MASTER_SITES= http://archive.debian.org/%SUBDIR%/ \ http://mirror.safehostnet.com/debian-archive/%SUBDIR%/ \ diff --git a/math/xspread/files/patch-interp.c b/math/xspread/files/patch-interp.c index b3b52477548e..03306f8858f3 100644 --- a/math/xspread/files/patch-interp.c +++ b/math/xspread/files/patch-interp.c @@ -1,6 +1,15 @@ ---- interp.c.orig 1995-11-07 02:17:26 UTC +--- interp.c.orig +++ interp.c -@@ -516,7 +516,7 @@ int mo, day, yr; +@@ -33,7 +33,7 @@ + #include <setjmp.h> + #include <ctype.h> + +-extern int errno; /* set by math functions */ ++#include <errno.h> + + #include "sc.h" + +@@ -516,7 +516,7 @@ mdays[1] = 28 + (yr%4 == 0); if (mo < 1 || mo > 12 || day < 1 || day > mdays[--mo] ||