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:
parent
739a6fb288
commit
2d4f18457e
@ -2,13 +2,8 @@
|
|||||||
|
|
||||||
/* Written 1993 by Werner Almesberger */
|
/* Written 1993 by Werner Almesberger */
|
||||||
|
|
||||||
#include <linux/version.h>
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
|
|
||||||
# define __KERNEL__
|
|
||||||
# include <asm/types.h>
|
# include <asm/types.h>
|
||||||
# undef __KERNEL__
|
|
||||||
# define MSDOS_FAT12 4084 /* maximum number of clusters in a 12 bit FAT */
|
# define MSDOS_FAT12 4084 /* maximum number of clusters in a 12 bit FAT */
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _COMMON_H
|
#ifndef _COMMON_H
|
||||||
#define _COMMON_H
|
#define _COMMON_H
|
||||||
|
|||||||
@ -14,13 +14,8 @@
|
|||||||
#define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h>*/
|
#define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h>*/
|
||||||
#define _LINUX_FS_H /* hack to avoid inclusion of <linux/fs.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/types.h>
|
||||||
# include <asm/byteorder.h>
|
# include <asm/byteorder.h>
|
||||||
# undef __KERNEL__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <linux/msdos_fs.h>
|
#include <linux/msdos_fs.h>
|
||||||
|
|
||||||
|
|||||||
@ -16,12 +16,7 @@
|
|||||||
#define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h>*/
|
#define _LINUX_STRING_H_ /* hack to avoid inclusion of <linux/string.h>*/
|
||||||
#define _LINUX_FS_H /* hack to avoid inclusion of <linux/fs.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/types.h>
|
||||||
# undef __KERNEL__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <linux/msdos_fs.h>
|
#include <linux/msdos_fs.h>
|
||||||
|
|
||||||
|
|||||||
@ -66,12 +66,7 @@
|
|||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
#include <linux/version.h>
|
|
||||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0)
|
|
||||||
# define __KERNEL__
|
|
||||||
# include <asm/types.h>
|
# include <asm/types.h>
|
||||||
# undef __KERNEL__
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if __BYTE_ORDER == __BIG_ENDIAN
|
#if __BYTE_ORDER == __BIG_ENDIAN
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user