]> git.pld-linux.org Git - packages/defrag.git/commitdiff
- fix compilation on 2.3/2.4 kernels
authorJan Rękorajski <baggins@pld-linux.org>
Thu, 28 Dec 2000 14:36:19 +0000 (14:36 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    defrag-kernel-2.4.patch -> 1.1

defrag-kernel-2.4.patch [new file with mode: 0644]

diff --git a/defrag-kernel-2.4.patch b/defrag-kernel-2.4.patch
new file mode 100644 (file)
index 0000000..26fa520
--- /dev/null
@@ -0,0 +1,22 @@
+--- defrag-0.73/e2dump.c~      Tue Aug 12 21:32:05 1997
++++ defrag-0.73/e2dump.c       Tue Dec 26 02:01:27 2000
+@@ -22,6 +22,7 @@
+ #include <fcntl.h>
+ #include <time.h>
+ #include <linux/ext2_fs.h>
++#include <linux/version.h>
+ #include "types.h"
+ #include "ext2.h"
+ #include "display.h"
+@@ -444,7 +444,11 @@
+                              /* in 512 byte blocks for some unknown reason */
+    printf("512-Blocks count: %lu\n", (unsigned long) n.i_blocks); 
+    if (n.i_flags !=0) printf ("Flags 0x%lX\n", (unsigned long) n.i_flags);
++#if LINUX_VERSION_CODE > KERNEL_VERSION(2,3,0)
++   printf("Version: %lu\n", (unsigned long) n.i_generation);
++#else
+    printf("Version: %lu\n", (unsigned long) n.i_version);
++#endif
+    
+    if (n.i_file_acl!=0 || n.i_dir_acl!=0) {    
+       printf("File ACL: %lu  ", (unsigned long) n.i_file_acl);
This page took 0.07567 seconds and 4 git commands to generate.