Whamcloud - gitweb
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 550e886..c9f5810 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>