Fix compilation for Linux 2.4 broken by the previous commit

Just because GFP_KERNEL is defined, it doesn't mean that gfp_t is
available.  Define gfp_t as a macro instead.


git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3855 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2008-09-02 21:27:51 +00:00
parent c3307227fb
commit e21e1740f3

View File

@ -131,9 +131,7 @@
} while (0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,14)
#ifndef GFP_KERNEL
typedef unsigned int gfp_t;
#endif
#define gfp_t unsigned int
static inline void *_kzalloc(size_t size, gfp_t flags)
{