git: 07f3e729804e - main - mail/qmail-conf: fix build on CURRENT

From: Oliver Lehmann <oliver_at_FreeBSD.org>
Date: Mon, 01 Apr 2024 00:56:44 UTC
The branch main has been updated by oliver:

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

commit 07f3e729804e758ed955bbdebf338132e03af59b
Author:     Oliver Lehmann <oliver@FreeBSD.org>
AuthorDate: 2024-04-01 00:55:05 +0000
Commit:     Oliver Lehmann <oliver@FreeBSD.org>
CommitDate: 2024-04-01 00:55:05 +0000

    mail/qmail-conf: fix build on CURRENT
---
 mail/qmail-conf/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/mail/qmail-conf/Makefile b/mail/qmail-conf/Makefile
index b0adf41bed08..060c0ebd88e0 100644
--- a/mail/qmail-conf/Makefile
+++ b/mail/qmail-conf/Makefile
@@ -40,6 +40,7 @@ post-patch:
 		@${ECHO_CMD} "${CC} ${CFLAGS}" > ${WRKSRC}/conf-cc
 		@${ECHO_CMD} "${CC} ${CFLAGS} ${STRIP}" > ${WRKSRC}/conf-ld
 		@${ECHO_CMD} "${LOCALBASE}" > ${WRKSRC}/conf-ucspi-tcp
+		@${REINPLACE_CMD} "s|extern int errno;|#include <errno.h>|" ${WRKSRC}/${DJBDNS_NAME}/error.h
 
 pre-build:
 		@(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \