From 7a65a910b77ad191d69881098c47f9b0c852d92e Mon Sep 17 00:00:00 2001 From: root Date: Tue, 13 Aug 2013 01:33:19 -0700 Subject: Tue Aug 13 01:31:08 PDT 2013 --- community/ext3grep/ext3grep-build.patch | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 community/ext3grep/ext3grep-build.patch (limited to 'community/ext3grep/ext3grep-build.patch') diff --git a/community/ext3grep/ext3grep-build.patch b/community/ext3grep/ext3grep-build.patch new file mode 100644 index 000000000..82af728bd --- /dev/null +++ b/community/ext3grep/ext3grep-build.patch @@ -0,0 +1,26 @@ +diff -ruN1 ext3grep-0.10.2-orig/src/ext3.h ext3grep-0.10.2/src/ext3.h +--- ext3grep-0.10.2-orig/src/ext3.h 2008-04-09 13:20:31.000000000 +0200 ++++ ext3grep-0.10.2/src/ext3.h 2012-02-26 17:05:42.000000000 +0100 +@@ -26,2 +26,13 @@ + ++// this trickery needs to happen before ext2_fs is included so ++// bail out if it has already been included by another path ++#ifdef _LINUX_EXT2_FS_H ++ #error please include this file before any other includes of ext2fs/ext2_fs.h ++#endif ++ ++// some versions of the ext2 headers call this s_frags_per_group and some ++// call it s_clusters_per_group, define one to the other so our code works ++// with both ++#define s_clusters_per_group s_frags_per_group ++ + // Use the header files from e2progs (http://e2fsprogs.sourceforge.net) +@@ -112,2 +123,8 @@ + __u16 gid_high(void) const { return i_gid_high; } ++#ifndef i_reseved2 ++ //i_reseved2 has been split into two fields in recent ++ //versions of the headers, luckilly we can still access ++ //it in one peice through the hurd side of the union ++ #define i_reserved2 osd2.hurd2.h_i_author ++#endif + __u32 reserved2(void) const { return i_reserved2; } -- cgit v1.2.3-54-g00ecf