Преглед изворни кода

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>

Daniel Baumann пре 15 година
родитељ
комит
2d4f18457e
4 измењених фајлова са 0 додато и 20 уклоњено
  1. 0 5
      dosfsck/common.h
  2. 0 5
      dosfsck/dosfsck.h
  3. 0 5
      dosfsck/file.c
  4. 0 5
      mkdosfs/mkdosfs.c

+ 0 - 5
dosfsck/common.h

@@ -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

+ 0 - 5
dosfsck/dosfsck.h

@@ -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>
 

+ 0 - 5
dosfsck/file.c

@@ -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>
 

+ 0 - 5
mkdosfs/mkdosfs.c

@@ -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