scst/include/backport.h: RHEL 7 build fix

Avoid that compilation fails on RHEL 7 due to a duplicate definition of
rdtsc().

Reported-by: Anton Kulshenko <shallriseagain@gmail.com>


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@7489 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2018-10-02 13:12:33 +00:00
parent 9a8c5d8459
commit 92acee3c25

View File

@@ -68,7 +68,7 @@
#ifdef CONFIG_X86
#include <asm/msr.h>
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 3, 0) && !defined(RHEL_RELEASE_CODE)
static __always_inline unsigned long long rdtsc(void)
{
return native_read_tsc();