summaryrefslogtreecommitdiff
path: root/security/checkpassword/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-10-01 16:27:21 +0100
commit4f7686e089ebd963d9fd1676327baaef0fd14096 (patch)
tree1737e2eabaf0ee320ad8d6e179187b1c38d24e33 /security/checkpassword/files/patch-error.h
parentwww/mediawiki139: Update to 1.39.10 (diff)
security/checkpassword: include errno.h for errno
errno must be accessed by a macro from errno.h. PR: 281780 Approved by: garga (maintainer)
Diffstat (limited to 'security/checkpassword/files/patch-error.h')
-rw-r--r--security/checkpassword/files/patch-error.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/checkpassword/files/patch-error.h b/security/checkpassword/files/patch-error.h
new file mode 100644
index 000000000000..e35ddb04802a
--- /dev/null
+++ b/security/checkpassword/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;