From bb1a2c2c421e75da9725c273c68126ef7eb99305 Mon Sep 17 00:00:00 2001 From: Brooks Davis Date: Mon, 30 Sep 2024 16:56:09 +0100 Subject: [PATCH] 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 + #include + +-extern int errno; /* set by math functions */ ++#include + + #include "sc.h" + +@@ -516,7 +516,7 @@ mdays[1] = 28 + (yr%4 == 0); if (mo < 1 || mo > 12 || day < 1 || day > mdays[--mo] ||