* [gentoo-commits] gentoo-x86 commit in sys-fs/ext3grep/files: ext3grep-0.10.2-new-e2fsprogs.diff
@ 2012-02-26 17:51 Hanno Boeck (hanno)
0 siblings, 0 replies; only message in thread
From: Hanno Boeck (hanno) @ 2012-02-26 17:51 UTC (permalink / raw
To: gentoo-commits
hanno 12/02/26 17:51:44
Added: ext3grep-0.10.2-new-e2fsprogs.diff
Log:
ext3grep: fix build with e2fsprogs
(Portage version: 2.1.10.49/cvs/Linux x86_64)
Revision Changes Path
1.1 sys-fs/ext3grep/files/ext3grep-0.10.2-new-e2fsprogs.diff
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ext3grep/files/ext3grep-0.10.2-new-e2fsprogs.diff?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-fs/ext3grep/files/ext3grep-0.10.2-new-e2fsprogs.diff?rev=1.1&content-type=text/plain
Index: ext3grep-0.10.2-new-e2fsprogs.diff
===================================================================
diff -ur ext3grep-0.10.1/src/ext3.h ext3grep-0.10.1.new/src/ext3.h
--- ext3grep-0.10.1/src/ext3.h 2008-04-09 11:20:31.000000000 +0000
+++ ext3grep-0.10.1.new/src/ext3.h 2011-12-10 07:00:50.000000000 +0000
@@ -24,6 +24,17 @@
#ifndef EXT3_H
#define EXT3_H
+// 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)
// We can use these headers and then everything named ext2 or ext3.
#include <ext2fs/ext2_fs.h> // Definitions of ext2, ext3 and ext4.
@@ -110,6 +121,12 @@
__u32 faddr(void) const { return i_faddr; }
__u16 uid_high(void) const { return i_uid_high; }
__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; }
void set_reserved2(__u32 val) { i_reserved2 = val; }
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-02-26 17:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-26 17:51 [gentoo-commits] gentoo-x86 commit in sys-fs/ext3grep/files: ext3grep-0.10.2-new-e2fsprogs.diff Hanno Boeck (hanno)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox