Fix some bugs when testing opensds ansible
[stor4nfv.git] / src / ceph / src / common / linux_version.h
1 #ifndef CEPH_LINUX_VERSION_H
2 #define CEPH_LINUX_VERSION_H
3
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
7
8 #ifdef HAVE_LINUX_VERSION_H
9 # include <linux/version.h>
10 #endif
11
12 #ifndef KERNEL_VERSION
13 # define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
14 #endif
15
16 int get_linux_version(void);
17
18 #ifdef __cplusplus
19 }
20 #endif
21
22 #endif /* CEPH_LINUX_VERSION_H */