]> git.proxmox.com Git - ceph.git/blame - ceph/src/common/linux_version.h
import ceph quincy 17.2.4
[ceph.git] / ceph / src / common / linux_version.h
CommitLineData
7c673cae
FG
1#ifndef CEPH_LINUX_VERSION_H
2#define CEPH_LINUX_VERSION_H
3
4#ifdef __cplusplus
5extern "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
16int get_linux_version(void);
17
18#ifdef __cplusplus
19}
20#endif
21
22#endif /* CEPH_LINUX_VERSION_H */