git: 74b8645f51e9 - main - mail/mess822: include errno.h for errno

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

URL: https://cgit.FreeBSD.org/ports/commit/?id=74b8645f51e965106064373b43ce13b552adfe1e

commit 74b8645f51e965106064373b43ce13b552adfe1e
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:11:21 +0000

    mail/mess822: include errno.h for errno
    
    errno must be accessed by a macro from errno.h.
---
 mail/mess822/Makefile                     |  2 +-
 mail/mess822/files/patch-cdb__seek.c      |  9 +++++++++
 mail/mess822/files/patch-error.h          | 11 +++++++++++
 mail/mess822/files/patch-leapsecs__read.c | 10 ++++++++++
 4 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/mail/mess822/Makefile b/mail/mess822/Makefile
index b6ddffb6d068..cd5a76106369 100644
--- a/mail/mess822/Makefile
+++ b/mail/mess822/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	mess822
 PORTVERSION=	0.58
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	mail
 MASTER_SITES=	http://cr.yp.to/software/ \
 		ftp://ftp.jp.qmail.org/qmail/ \
diff --git a/mail/mess822/files/patch-cdb__seek.c b/mail/mess822/files/patch-cdb__seek.c
new file mode 100644
index 000000000000..167a43dfcb3f
--- /dev/null
+++ b/mail/mess822/files/patch-cdb__seek.c
@@ -0,0 +1,9 @@
+--- cdb_seek.c.orig
++++ cdb_seek.c
+@@ -1,6 +1,5 @@
+ #include <sys/types.h>
+ #include <errno.h>
+-extern int errno;
+ #include "cdb.h"
+ 
+ #ifndef SEEK_SET
diff --git a/mail/mess822/files/patch-error.h b/mail/mess822/files/patch-error.h
new file mode 100644
index 000000000000..e35ddb04802a
--- /dev/null
+++ b/mail/mess822/files/patch-error.h
@@ -0,0 +1,11 @@
+--- error.h.orig
++++ error.h
+@@ -1,7 +1,7 @@
+ #ifndef ERROR_H
+ #define ERROR_H
+ 
+-extern int errno;
++#include <errno.h>
+ 
+ extern int error_intr;
+ extern int error_nomem;
diff --git a/mail/mess822/files/patch-leapsecs__read.c b/mail/mess822/files/patch-leapsecs__read.c
new file mode 100644
index 000000000000..60cacfbe6e32
--- /dev/null
+++ b/mail/mess822/files/patch-leapsecs__read.c
@@ -0,0 +1,10 @@
+--- leapsecs_read.c.orig
++++ leapsecs_read.c
+@@ -2,7 +2,6 @@
+ #include <sys/stat.h>
+ #include <fcntl.h>
+ #include <errno.h>
+-extern int errno;
+ #include "tai.h"
+ #include "leapsecs.h"
+