Move another header to the top of compat.h - fixes previous commit
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 24 Apr 2008 14:09:57 +0000 (14:09 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Thu, 24 Apr 2008 14:09:57 +0000 (14:09 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@3572 0192ed92-7a03-0410-a25b-9323aeb14dbd

include/compat.h

index a9bf736abb3d2ef1ff166498a7582d55676b76d3..4c011fa2c9313aa3f77736f88c549bfcec90a125 100644 (file)
@@ -46,6 +46,8 @@
 #include <linux/kernel.h>
 #endif
 
+#include <linux/version.h>
+
 #if !defined(__KERNEL__) || !defined (__bitwise)
 #define __le16 u_int16_t
 #define __le32 u_int32_t
@@ -140,7 +142,6 @@ static inline void *kzalloc(size_t size, gfp_t flags)
  */
 #ifdef __KERNEL__
 
-#include <linux/version.h>
 #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)
 #define ATH_REGISTER_SYSCTL_TABLE(t) register_sysctl_table(t, 1)
 #else