You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-mail/qlogtools/files/qlogtools-3.1-fix-glibc-2-3...

32 lines
737 B

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);
}