fix ftbfs with newer glibc in sid
authorMathieu Trudel-Lapierre <cyphermox@ubuntu.com>
Thu, 19 Nov 2020 12:35:27 +0000 (21:35 +0900)
committerKentaro Hayashi <kenhys@xdump.org>
Thu, 19 Nov 2020 12:35:27 +0000 (21:35 +0900)
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926716

Newer versions of glibc cause a fail to build due to some linux header
changes. This needs to go upstream.
Origin: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=926716
Gbp-Pq: Name ftbfs

tests/LTlib.c

index 1c0d96052414b8941eff8c3f1ffc84364cf61afe..e5eeb20bf904b062796789400b90b7447adc2049 100644 (file)
@@ -231,26 +231,32 @@ _PROTOTYPE(static X2DEV_T x2dev,(char *x, char **em));
  */
 
 #if    !defined(major_S)
+#include <sys/sysmacros.h>
 #define        major_S         major
 #endif /* defined(major_S) */
 
 #if    !defined(minor_S)
+#include <sys/sysmacros.h>
 #define        minor_S         minor
 #endif /* defined(minor_S) */
 
 #if    !defined(unit_S)
+#include <sys/sysmacros.h>
 #define        unit_S(x)       0
 #endif /* defined(unit_S) */
 
 #if    !defined(major_X)
+#include <sys/sysmacros.h>
 #define        major_X(dp, em) major(x2dev(dp, em))
 #endif /* defined(major_X) */
 
 #if    !defined(minor_X)
+#include <sys/sysmacros.h>
 #define        minor_X(dp, em) minor(x2dev(dp, em))
 #endif /* defined(minor_X) */
 
 #if    !defined(unit_X)
+#include <sys/sysmacros.h>
 #define        unit_X(dp, em)  0
 #endif /* defined(unit_X) */