]> git.proxmox.com Git - ceph.git/blob - ceph/src/dpdk/lib/librte_eal/linuxapp/xen_dom0/compat.h
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / dpdk / lib / librte_eal / linuxapp / xen_dom0 / compat.h
1 /*
2 * Minimal wrappers to allow compiling xen_dom0 on older kernels.
3 */
4
5 #ifndef RHEL_RELEASE_VERSION
6 #define RHEL_RELEASE_VERSION(a, b) (((a) << 8) + (b))
7 #endif
8
9 #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && \
10 (!(defined(RHEL_RELEASE_CODE) && \
11 RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 4)))
12
13 #define kstrtoul strict_strtoul
14
15 #endif /* < 2.6.39 */