git: 5b93136e223e - main - comms/gkermit: enable use of errno.h for errno

From: Brooks Davis <brooks_at_FreeBSD.org>
Date: Mon, 30 Sep 2024 22:15:06 UTC
The branch main has been updated by brooks:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5b93136e223e85fe6e10b691af5860fa2e978e5b

commit 5b93136e223e85fe6e10b691af5860fa2e978e5b
Author:     Brooks Davis <brooks@FreeBSD.org>
AuthorDate: 2024-09-30 18:25:04 +0000
Commit:     Brooks Davis <brooks@FreeBSD.org>
CommitDate: 2024-09-30 22:11:19 +0000

    comms/gkermit: enable use of errno.h for errno
    
    The code to be standards conformant was there, just not enabled by
    default so enable it.
---
 comms/gkermit/Makefile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/comms/gkermit/Makefile b/comms/gkermit/Makefile
index 36599f3407c7..27ac61996af5 100644
--- a/comms/gkermit/Makefile
+++ b/comms/gkermit/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	gkermit
 PORTVERSION=	1.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	comms
 MASTER_SITES=	ftp://ftp.kermitproject.org/kermit/archives/
 DISTNAME=	gku100
@@ -16,6 +16,8 @@ MAKEFILE=	makefile
 
 OPTIONS_DEFINE=	DOCS
 
+CFLAGS+=	-DERRNO_H
+
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/gkermit ${STAGEDIR}${PREFIX}/bin
 	${INSTALL_MAN} ${WRKSRC}/gkermit.nr ${STAGEDIR}${PREFIX}/share/man/man1/gkermit.1