X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fceph%2Fsrc%2Fcommon%2Flinux_version.h;fp=src%2Fceph%2Fsrc%2Fcommon%2Flinux_version.h;h=5588c55ba2206c9a411e7d97c5c80e00cc7efc74;hb=812ff6ca9fcd3e629e49d4328905f33eee8ca3f5;hp=0000000000000000000000000000000000000000;hpb=15280273faafb77777eab341909a3f495cf248d9;p=stor4nfv.git diff --git a/src/ceph/src/common/linux_version.h b/src/ceph/src/common/linux_version.h new file mode 100644 index 0000000..5588c55 --- /dev/null +++ b/src/ceph/src/common/linux_version.h @@ -0,0 +1,22 @@ +#ifndef CEPH_LINUX_VERSION_H +#define CEPH_LINUX_VERSION_H + +#ifdef __cplusplus +extern "C" { +#endif + +#ifdef HAVE_LINUX_VERSION_H +# include +#endif + +#ifndef KERNEL_VERSION +# define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c)) +#endif + +int get_linux_version(void); + +#ifdef __cplusplus +} +#endif + +#endif /* CEPH_LINUX_VERSION_H */