From f30e5aa80b16e3d321992a86d032e81d8ef9bb42 Mon Sep 17 00:00:00 2001 From: mtaylor Date: Thu, 22 Nov 2007 04:43:06 +0000 Subject: [PATCH] Add gfp_t for pre 2.6.14 kernels in compat.h git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2921 0192ed92-7a03-0410-a25b-9323aeb14dbd --- include/compat.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/compat.h b/include/compat.h index 53567bd..649cf2a 100644 --- a/include/compat.h +++ b/include/compat.h @@ -131,6 +131,10 @@ #define __iomem #endif +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14) +typedef unsigned __nocast gfp_t; +#endif + #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16) static inline int timeval_compare(struct timeval *lhs, struct timeval *rhs) {