Fix compilation for Linux 2.4 broken by the previous commit
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 2 Sep 2008 21:27:51 +0000 (21:27 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Tue, 2 Sep 2008 21:27:51 +0000 (21:27 +0000)
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

include/compat.h

index 9e78d3bebb1593f6a2f492fc01d0934864dd7aa0..ff1db756e4c3e9c9767f93f16aaf9178b82c125f 100644 (file)
 } 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)
 {