syslinux: add patches to build with newer kernels

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2012-07-23 14:36:38 +02:00
parent d34adf0ebe
commit cab74c1cfb
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -Naur a/libinstaller/linuxioctl.h b/libinstaller/linuxioctl.h
--- a/libinstaller/linuxioctl.h 2011-12-09 19:28:17.000000000 +0100
+++ b/libinstaller/linuxioctl.h 2012-04-18 21:02:43.405941674 +0200
@@ -19,7 +19,7 @@
#undef SECTOR_SIZE /* Defined in msdos_fs.h for no good reason */
#undef SECTOR_BITS
-#include <linux/ext2_fs.h> /* EXT2_IOC_* */
+#include <ext2fs/ext2_fs.h> /* EXT2_IOC_* */
#ifndef FAT_IOCTL_GET_ATTRIBUTES
# define FAT_IOCTL_GET_ATTRIBUTES _IOR('r', 0x10, __u32)

View File

@ -0,0 +1,10 @@
--- syslinux-4.05.prep/libinstaller/linuxioctl.h 2011-12-09 13:28:17.000000000 -0500
+++ syslinux-4.05/libinstaller/linuxioctl.h 2012-02-15 12:28:13.393212119 -0500
@@ -7,6 +7,7 @@
#ifndef LIBINSTALLER_LINUXIOCTL_H
#define LIBINSTALLER_LINUXIOCTL_H
+typedef unsigned short umode_t;
#include <sys/ioctl.h>
#define statfs _kernel_statfs /* HACK to deal with broken 2.4 distros */