From: florian Date: Sat, 9 Dec 2006 16:00:47 +0000 (+0000) Subject: Fix linux-2.6 redeclaration errors, should not break 2.4 builds (#1018) X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=84f30b59532bfdb36bff1c97a1a32480a089ad30;p=packages.git Fix linux-2.6 redeclaration errors, should not break 2.4 builds (#1018) git-svn-id: svn://svn.openwrt.org/openwrt/packages@5735 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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