Applying Fedoras dosfstools-2.11-assumeKernel26.patch from Peter Vrabec

<pvrabec@redhat.com> to remove linux 2.6 conditionals:

  * LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) does not work with
    glibc-kernheaders-2.4-9.1.94

Signed-off-by: Daniel Baumann <mail@daniel-baumann.ch>
This commit is contained in:
Daniel Baumann 2008-09-26 15:11:50 +02:00
parent 739a6fb288
commit 2d4f18457e
4 changed files with 0 additions and 20 deletions

View File

@ -2,13 +2,8 @@
/* Written 1993 by Werner Almesberger */
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
# define __KERNEL__
# include <asm/types.h>
# undef __KERNEL__
# define MSDOS_FAT12 4084 /* maximum number of clusters in a 12 bit FAT */
#endif
#ifndef _COMMON_H
#define _COMMON_H

View File

@ -14,13 +14,8 @@
#define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h>*/
#define _LINUX_FS_H /* hack to avoid inclusion of <linux/fs.h> */
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
# define __KERNEL__
# include <asm/types.h>
# include <asm/byteorder.h>
# undef __KERNEL__
#endif
#include <linux/msdos_fs.h>

View File

@ -16,12 +16,7 @@
#define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h>*/
#define _LINUX_FS_H /* hack to avoid inclusion of <linux/fs.h> */
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
# define __KERNEL__
# include <asm/types.h>
# undef __KERNEL__
#endif
#include <linux/msdos_fs.h>

View File

@ -66,12 +66,7 @@
#include <time.h>
#include <errno.h>
#include <linux/version.h>
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
# define __KERNEL__
# include <asm/types.h>
# undef __KERNEL__
#endif
#if __BYTE_ORDER == __BIG_ENDIAN