From 535a3151358860ffa43d7b53770b5486baf35bb0 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Sat, 9 Dec 2006 16:00:47 +0000 Subject: [PATCH] Fix linux-2.6 redeclaration errors, should not break 2.4 builds (#1018) SVN-Revision: 5735 --- .../patches/002-linux_26_headers.patch | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 utils/dosfstools/patches/002-linux_26_headers.patch diff --git a/utils/dosfstools/patches/002-linux_26_headers.patch b/utils/dosfstools/patches/002-linux_26_headers.patch new file mode 100644 index 000000000..f116096db --- /dev/null +++ b/utils/dosfstools/patches/002-linux_26_headers.patch @@ -0,0 +1,56 @@ +diff -urN dosfstools-2.11/dosfsck/common.h dosfstools-2.11.new/dosfsck/common.h +--- dosfstools-2.11/dosfsck/common.h 2004-02-25 10:07:01.000000000 +0100 ++++ dosfstools-2.11.new/dosfsck/common.h 2006-12-09 16:45:12.000000000 +0100 +@@ -4,9 +4,7 @@ + + #include + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) +-# define __KERNEL__ +-# include +-# undef __KERNEL__ ++#include + # define MSDOS_FAT12 4084 /* maximum number of clusters in a 12 bit FAT */ + #endif + +diff -urN dosfstools-2.11/dosfsck/file.c dosfstools-2.11.new/dosfsck/file.c +--- dosfstools-2.11/dosfsck/file.c 2004-02-25 10:07:38.000000000 +0100 ++++ dosfstools-2.11.new/dosfsck/file.c 2006-12-09 16:45:22.000000000 +0100 +@@ -18,9 +18,7 @@ + + #include + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) +-# define __KERNEL__ +-# include +-# undef __KERNEL__ ++#include + #endif + + #include +diff -urN dosfstools-2.11/dosfsck/io.c dosfstools-2.11.new/dosfsck/io.c +--- dosfstools-2.11/dosfsck/io.c 2005-03-12 16:33:58.000000000 +0100 ++++ dosfstools-2.11.new/dosfsck/io.c 2006-12-09 16:48:43.000000000 +0100 +@@ -19,6 +19,10 @@ + #include + #include + #include ++#include ++#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) ++#include ++#endif + #include + + #include "dosfsck.h" +diff -urN dosfstools-2.11/mkdosfs/mkdosfs.c dosfstools-2.11.new/mkdosfs/mkdosfs.c +--- dosfstools-2.11/mkdosfs/mkdosfs.c 2005-03-12 17:12:16.000000000 +0100 ++++ dosfstools-2.11.new/mkdosfs/mkdosfs.c 2006-12-09 16:44:57.000000000 +0100 +@@ -68,9 +68,7 @@ + + #include + #if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) +-# define __KERNEL__ +-# include +-# undef __KERNEL__ ++#include + #endif + + #if __BYTE_ORDER == __BIG_ENDIAN -- 2.30.2