Skip to content
Snippets Groups Projects

Fix ftbfs due to missing major/minor macros in tests

Merged Ritesh Raj Sarraf requested to merge wip/rietsh/fix-ftbfs-sysmacros into apertis/v2021dev3
All threads resolved!
3 files
+ 45
0
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 37
0
Index: lsof-4.91+dfsg/tests/LTlib.c
===================================================================
--- lsof-4.91+dfsg.orig/tests/LTlib.c
+++ lsof-4.91+dfsg/tests/LTlib.c
@@ -231,26 +231,32 @@ _PROTOTYPE(static X2DEV_T x2dev,(char *x
*/
#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) */
Loading