]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
mke2fs: don't depend on <linux/version.h>
authorTheodore Ts'o <tytso@mit.edu>
Fri, 19 Sep 2014 04:04:24 +0000 (00:04 -0400)
committerTheodore 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

index 550e8868970d60bca1146b65c3445f840bd4aca7..c9f5810aa51c184cb1639087c4de5851c7782f9a 100644 (file)
@@ -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>