1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

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
This commit is contained in:
Brooks Davis 2024-09-30 16:56:09 +01:00
parent 4fb33e13da
commit 87071de424
2 changed files with 20 additions and 1 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= sliderule
PORTVERSION= 1.0
PORTREVISION= 11
PORTREVISION= 12
CATEGORIES= deskutils
MASTER_SITES= LOCAL/joerg
DISTNAME= ${PORTNAME}

View File

@ -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