From cab74c1cfb1f4e4c68c537b25e5498fcbdb09b44 Mon Sep 17 00:00:00 2001 From: Stephan Raue Date: Mon, 23 Jul 2012 14:36:38 +0200 Subject: [PATCH] syslinux: add patches to build with newer kernels Signed-off-by: Stephan Raue --- .../syslinux/patches/syslinux-4.05-ext2_fs.h.patch | 12 ++++++++++++ .../syslinux/patches/syslinux-4.05-fix-types.patch | 10 ++++++++++ 2 files changed, 22 insertions(+) create mode 100644 packages/tools/syslinux/patches/syslinux-4.05-ext2_fs.h.patch create mode 100644 packages/tools/syslinux/patches/syslinux-4.05-fix-types.patch diff --git a/packages/tools/syslinux/patches/syslinux-4.05-ext2_fs.h.patch b/packages/tools/syslinux/patches/syslinux-4.05-ext2_fs.h.patch new file mode 100644 index 0000000000..ba340422e8 --- /dev/null +++ b/packages/tools/syslinux/patches/syslinux-4.05-ext2_fs.h.patch @@ -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 /* EXT2_IOC_* */ ++#include /* EXT2_IOC_* */ + + #ifndef FAT_IOCTL_GET_ATTRIBUTES + # define FAT_IOCTL_GET_ATTRIBUTES _IOR('r', 0x10, __u32) diff --git a/packages/tools/syslinux/patches/syslinux-4.05-fix-types.patch b/packages/tools/syslinux/patches/syslinux-4.05-fix-types.patch new file mode 100644 index 0000000000..5b756a6919 --- /dev/null +++ b/packages/tools/syslinux/patches/syslinux-4.05-fix-types.patch @@ -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 + + #define statfs _kernel_statfs /* HACK to deal with broken 2.4 distros */