From 1657c7db3b2f0b7d51f84372e41dc085e80ff29b Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Thu, 27 Nov 2014 15:18:58 +0000 Subject: [PATCH] scst.h: Add uintptr_t git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@5891 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/include/scst.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/scst/include/scst.h b/scst/include/scst.h index b47ce4b7e..4afd333f0 100644 --- a/scst/include/scst.h +++ b/scst/include/scst.h @@ -128,6 +128,14 @@ char *kvasprintf(gfp_t gfp, const char *fmt, va_list ap); #define nr_cpu_ids NR_CPUS #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 24) +/* + * See also patch "fix abuses of ptrdiff_t" (commit ID + * 142956af525002c5378e7d91d81a01189841a785). + */ +typedef unsigned long uintptr_t; +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2, 6, 28) #define cpumask_bits(maskp) ((maskp)->bits) #ifdef CONFIG_CPUMASK_OFFSTACK