mirror of
https://github.com/proski/madwifi
synced 2024-11-24 23:40:00 +03:00
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:
parent
c3307227fb
commit
e21e1740f3
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user