git: f92880d3e582 - main - mail/qmail-dk: include errno.h for errno

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

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

commit f92880d3e5824f943fb5de9eb395dbfe30a55c1c
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/qmail-dk: include errno.h for errno
    
    errno must be accessed by a macro from errno.h.
---
 mail/qmail-dk/Makefile                |  2 +-
 mail/qmail-dk/files/patch-cdb__seek.c |  9 +++++++++
 mail/qmail-dk/files/patch-dns.c       | 10 ++++++++++
 mail/qmail-dk/files/patch-error.h     | 11 +++++++++++
 4 files changed, 31 insertions(+), 1 deletion(-)

diff --git a/mail/qmail-dk/Makefile b/mail/qmail-dk/Makefile
index 76ec823dc763..27e55fc91560 100644
--- a/mail/qmail-dk/Makefile
+++ b/mail/qmail-dk/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	dk
 PORTVERSION=	0.54
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	mail
 MASTER_SITES=	QMAIL
 PKGNAMEPREFIX=	qmail-
diff --git a/mail/qmail-dk/files/patch-cdb__seek.c b/mail/qmail-dk/files/patch-cdb__seek.c
new file mode 100644
index 000000000000..167a43dfcb3f
--- /dev/null
+++ b/mail/qmail-dk/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/qmail-dk/files/patch-dns.c b/mail/qmail-dk/files/patch-dns.c
new file mode 100644
index 000000000000..568abd815d27
--- /dev/null
+++ b/mail/qmail-dk/files/patch-dns.c
@@ -0,0 +1,10 @@
+--- dns.c.orig
++++ dns.c
+@@ -7,7 +7,6 @@
+ #include <errno.h>
+ extern int res_query();
+ extern int res_search();
+-extern int errno;
+ extern int h_errno;
+ #include "ip.h"
+ #include "ipalloc.h"
diff --git a/mail/qmail-dk/files/patch-error.h b/mail/qmail-dk/files/patch-error.h
new file mode 100644
index 000000000000..e35ddb04802a
--- /dev/null
+++ b/mail/qmail-dk/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;