diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-04-12 14:01:10 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-04-12 14:01:10 +0200 |
commit | caf5768154301697430f0a3718838967d0f55f95 (patch) | |
tree | 2929d1bf68097137a32c6deb4410f15816080813 | |
parent | 14850308e902594785e6789a4f28677103ca2096 (diff) | |
download | busybox-w32-caf5768154301697430f0a3718838967d0f55f95.tar.gz busybox-w32-caf5768154301697430f0a3718838967d0f55f95.tar.bz2 busybox-w32-caf5768154301697430f0a3718838967d0f55f95.zip |
work around linux/ext2_fs.h breakage
See https://bugzilla.kernel.org/show_bug.cgi?id=42986
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | e2fsprogs/tune2fs.c | 6 | ||||
-rw-r--r-- | util-linux/mkfs_ext2.c | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/e2fsprogs/tune2fs.c b/e2fsprogs/tune2fs.c index 020bdaa33..8da7432d9 100644 --- a/e2fsprogs/tune2fs.c +++ b/e2fsprogs/tune2fs.c | |||
@@ -8,6 +8,12 @@ | |||
8 | */ | 8 | */ |
9 | #include "libbb.h" | 9 | #include "libbb.h" |
10 | #include <linux/fs.h> | 10 | #include <linux/fs.h> |
11 | /* | ||
12 | * Work around linux/ext2_fs.h breakage. | ||
13 | * See https://bugzilla.kernel.org/show_bug.cgi?id=42986. | ||
14 | */ | ||
15 | typedef mode_t bb__umode_t; | ||
16 | #define umode_t bb__umode_t | ||
11 | #include <linux/ext2_fs.h> | 17 | #include <linux/ext2_fs.h> |
12 | 18 | ||
13 | // storage helpers | 19 | // storage helpers |
diff --git a/util-linux/mkfs_ext2.c b/util-linux/mkfs_ext2.c index 6cbbe0e07..759bb0a7a 100644 --- a/util-linux/mkfs_ext2.c +++ b/util-linux/mkfs_ext2.c | |||
@@ -48,6 +48,12 @@ | |||
48 | 48 | ||
49 | #include "libbb.h" | 49 | #include "libbb.h" |
50 | #include <linux/fs.h> | 50 | #include <linux/fs.h> |
51 | /* | ||
52 | * Work around linux/ext2_fs.h breakage. | ||
53 | * See https://bugzilla.kernel.org/show_bug.cgi?id=42986. | ||
54 | */ | ||
55 | typedef mode_t bb__umode_t; | ||
56 | #define umode_t bb__umode_t | ||
51 | #include <linux/ext2_fs.h> | 57 | #include <linux/ext2_fs.h> |
52 | 58 | ||
53 | #define ENABLE_FEATURE_MKFS_EXT2_RESERVED_GDT 0 | 59 | #define ENABLE_FEATURE_MKFS_EXT2_RESERVED_GDT 0 |