summaryrefslogtreecommitdiff
path: root/mail/serialmail/files/patch-error.h
diff options
context:
space:
mode:
authorBrooks Davis <brooks@FreeBSD.org>2024-09-30 16:56:09 +0100
committerBrooks Davis <brooks@FreeBSD.org>2024-09-30 23:13:43 +0100
commitc115a19758196af4a8eac7e831169e840797b3ae (patch)
tree12c0832cca7cb09bc0576d6ccf2d03cf516250b0 /mail/serialmail/files/patch-error.h
parentmail/queue-fix: include errno.h for errno (diff)
mail/serialmail: include errno.h for errno
errno must be accessed by a macro from errno.h.
Diffstat (limited to 'mail/serialmail/files/patch-error.h')
-rw-r--r--mail/serialmail/files/patch-error.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/serialmail/files/patch-error.h b/mail/serialmail/files/patch-error.h
new file mode 100644
index 000000000000..e35ddb04802a
--- /dev/null
+++ b/mail/serialmail/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;