aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2024-09-30 15:56:09 +0000
committerBrooks Davis <brooks@FreeBSD.org>2024-09-30 22:11:21 +0000
commit74b8645f51e965106064373b43ce13b552adfe1e (patch)
tree7fe0594cd289d3fc1b926984ee2ef74be088f7bb
parentb72e179346cd17b040878f629dc958d9cc8d893d (diff)
downloadports-74b8645f51e965106064373b43ce13b552adfe1e.tar.gz
ports-74b8645f51e965106064373b43ce13b552adfe1e.zip
mail/mess822: include errno.h for errno
errno must be accessed by a macro from errno.h.
-rw-r--r--mail/mess822/Makefile2
-rw-r--r--mail/mess822/files/patch-cdb__seek.c9
-rw-r--r--mail/mess822/files/patch-error.h11
-rw-r--r--mail/mess822/files/patch-leapsecs__read.c10
4 files changed, 31 insertions, 1 deletions
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"
+