Bug#979748: rio: FTBFS with glibc 2.32
Source: rio
Version: 1.07-14
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu hirsute ubuntu-patch
X-Debbugs-Cc: logan@ubuntu.com
Hi,
rio currently FTBFS against glibc 2.32, which is used in the
development release of Ubuntu (and should be in Debian soon).
This is because it uses sys_errlist instead of strerror(), which is also
supported in earlier versions of glibc.
In Ubuntu, the attached patch was applied to achieve the following:
* std.h: Use strerror() instead of sys_errlist to fix FTBFS with glibc 2.32.
Thanks for considering the patch.
Logan
only in patch2:
unchanged:
--- rio-1.07.orig/std.h
+++ rio-1.07/std.h
@@ -31,7 +31,7 @@
#endif
#ifndef SZERROR
-#define SZERROR sys_errlist[errno]
+#define SZERROR strerror(errno)
#endif
typedef unsigned char UCHAR;
Reply to: