diff options
Diffstat (limited to 'src/blkdev/linux_version.h')
-rw-r--r-- | src/blkdev/linux_version.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/blkdev/linux_version.h b/src/blkdev/linux_version.h new file mode 100644 index 0000000..a6a1e99 --- /dev/null +++ b/src/blkdev/linux_version.h @@ -0,0 +1,14 @@ +#ifndef LINUX_VERSION_H +#define LINUX_VERSION_H + +#ifdef HAVE_LINUX_VERSION_H +# include <linux/version.h> +#endif + +#ifndef KERNEL_VERSION +# define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) +#endif + +int get_linux_version(void); + +#endif /* LINUX_VERSION_H */ |