aboutsummaryrefslogtreecommitdiffstats
path: root/lib/librte_eal/linuxapp/xen_dom0/compat.h
blob: e6eb97f284480cd3a3ba13b3f7e468dc750a9720 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/*
 * Minimal wrappers to allow compiling xen_dom0 on older kernels.
 */

#ifndef RHEL_RELEASE_VERSION
#define RHEL_RELEASE_VERSION(a, b) (((a) << 8) + (b))
#endif

#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 39) && \
	(!(defined(RHEL_RELEASE_CODE) && \
	 RHEL_RELEASE_CODE >= RHEL_RELEASE_VERSION(6, 4)))

#define kstrtoul strict_strtoul

#endif /* < 2.6.39 */