mirror of https://github.com/vitalif/e2fsprogs
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
parent
d9112409a2
commit
ceec1709f7
|
@ -27,7 +27,7 @@
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <linux/version.h>
|
#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_GETOPT_H
|
#ifdef HAVE_GETOPT_H
|
||||||
#include <getopt.h>
|
#include <getopt.h>
|
||||||
|
|
Loading…
Reference in New Issue