From 7588fc84a91b1eebc4c26ba27704a920308082d2 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 4 Nov 2018 03:05:32 +0000 Subject: [PATCH] Merge r7370 from trunk git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/3.3.x@7630 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst_const.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scst/include/scst_const.h b/scst/include/scst_const.h index 9effd83f8..c409ebcc8 100644 --- a/scst/include/scst_const.h +++ b/scst/include/scst_const.h @@ -371,7 +371,7 @@ static inline int scst_sense_response_code(const uint8_t *sense) && (!defined(RHEL_MAJOR) || RHEL_MAJOR -0 <= 5) #define WRITE_ATTRIBUTE 0x8D #endif -#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) +#if !defined(__KERNEL__) || LINUX_VERSION_CODE < KERNEL_VERSION(4, 12, 0) #define WRITE_VERIFY_16 0x8E #endif #define VERIFY_6 0x13