diff --git a/packages/tools/syslinux/patches/syslinux-0002-fix-build-with-glibc_2.36.patch b/packages/tools/syslinux/patches/syslinux-0002-fix-build-with-glibc_2.36.patch new file mode 100644 index 0000000000..5bab310449 --- /dev/null +++ b/packages/tools/syslinux/patches/syslinux-0002-fix-build-with-glibc_2.36.patch @@ -0,0 +1,17 @@ +--- a/libinstaller/linuxioctl.h 2022-07-17 12:45:43.459729359 +0000 ++++ b/libinstaller/linuxioctl.h 2022-07-17 12:58:50.204815753 +0000 +@@ -16,7 +16,13 @@ + #include /* Floppy geometry */ + #include /* Hard disk geometry */ + +-#include /* FIGETBSZ, FIBMAP, FS_IOC_* */ ++#define FIBMAP _IO(0x00,1) /* bmap access */ ++#define FIGETBSZ _IO(0x00,2) /* get the block size used for bmap */ ++ ++#define FS_IOC_GETFLAGS _IOR('f', 1, long) ++#define FS_IOC_SETFLAGS _IOW('f', 2, long) ++ ++#define FS_IMMUTABLE_FL 0x00000010 /* Immutable file */ + + #undef SECTOR_SIZE /* Defined in msdos_fs.h for no good reason */ + #undef SECTOR_BITS