Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d911240
)
mke2fs: don't depend on <linux/version.h>
author
Theodore Ts'o
<tytso@mit.edu>
Fri, 19 Sep 2014 04:04:24 +0000
(
00:04
-0400)
committer
Theodore Ts'o
<tytso@mit.edu>
Fri, 19 Sep 2014 04:04:24 +0000
(
00:04
-0400)
Define the KERNEL_VERSION macro explicitly instead of using
<linux/version.h>, since it's not available when using dietlibc.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.c
patch
|
blob
|
history
diff --git
a/misc/mke2fs.c
b/misc/mke2fs.c
index
550e886
..
c9f5810
100644
(file)
--- a/
misc/mke2fs.c
+++ b/
misc/mke2fs.c
@@
-27,7
+27,7
@@
#include <time.h>
#ifdef __linux__
#include <sys/utsname.h>
-#
include <linux/version.h>
+#
define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
#endif
#ifdef HAVE_GETOPT_H
#include <getopt.h>