summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-mail/qlogtools/files/qlogtools-3.1-fix-glibc-2-33.patch')
-rw-r--r--net-mail/qlogtools/files/qlogtools-3.1-fix-glibc-2-33.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/net-mail/qlogtools/files/qlogtools-3.1-fix-glibc-2-33.patch b/net-mail/qlogtools/files/qlogtools-3.1-fix-glibc-2-33.patch
new file mode 100644
index 000000000000..ea3d08561ed5
--- /dev/null
+++ b/net-mail/qlogtools/files/qlogtools-3.1-fix-glibc-2-33.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/715702
+
+From: Sam James <sam@gentoo.org>
+Date: Mon, 15 Nov 2021 05:48:50 +0000
+Subject: [PATCH 2/2] Fix build with glibc-2.33
+--- a/instcheck.c
++++ b/instcheck.c
+@@ -2,6 +2,7 @@
+ #include <fcntl.h>
+ #include <stdio.h>
+ #include <stdlib.h>
++#include <string.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
+ #include <unistd.h>
+@@ -15,14 +15,14 @@ int man;
+ static void diesys(const char* msg)
+ {
+ fprintf(stderr, "installer error: %s:\n %s\n", msg,
+- sys_errlist[errno]);
++ strerror(errno));
+ exit(1);
+ }
+
+ static void diefsys(const char* msg, const char* filename)
+ {
+ fprintf(stderr, "installer error: %s '%s':\n %s\n", msg, filename,
+- sys_errlist[errno]);
++ strerror(errno));
+ exit(1);
+ }