git: 87071de424cc - main - deskutils/sliderule: include errno.h for errno
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 01 Oct 2024 20:12:48 UTC
The branch main has been updated by brooks: URL: https://cgit.FreeBSD.org/ports/commit/?id=87071de424cc546dadc6a92b36706e37407b9a92 commit 87071de424cc546dadc6a92b36706e37407b9a92 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 deskutils/sliderule: include errno.h for errno errno must be accessed by a macro from errno.h. PR: 281785 Approved by: portmgr (build fix blanket), mikael --- deskutils/sliderule/Makefile | 2 +- deskutils/sliderule/files/patch-xcalc.c | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/deskutils/sliderule/Makefile b/deskutils/sliderule/Makefile index 2d22946ff3ab..01d412c294c0 100644 --- a/deskutils/sliderule/Makefile +++ b/deskutils/sliderule/Makefile @@ -1,6 +1,6 @@ PORTNAME= sliderule PORTVERSION= 1.0 -PORTREVISION= 11 +PORTREVISION= 12 CATEGORIES= deskutils MASTER_SITES= LOCAL/joerg DISTNAME= ${PORTNAME} diff --git a/deskutils/sliderule/files/patch-xcalc.c b/deskutils/sliderule/files/patch-xcalc.c new file mode 100644 index 000000000000..40bd7648d71f --- /dev/null +++ b/deskutils/sliderule/files/patch-xcalc.c @@ -0,0 +1,19 @@ +--- xcalc.c.orig ++++ xcalc.c +@@ -32,6 +32,7 @@ + * it's an option. + */ + ++#include <errno.h> + #include <stdio.h> + #include <math.h> + #include <signal.h> +@@ -43,8 +44,6 @@ + + /* program icon */ + #include "icon" +- +-extern int errno; + + + /* constants used for setting up the calculator. changing them would