mke2fs: don't depend on <linux/version.h>

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>
test-maint
Theodore Ts'o 2014-09-19 00:04:24 -04:00
parent d9112409a2
commit ceec1709f7
1 changed files with 1 additions and 1 deletions

View 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>