Use generated/utsrelease.h for Linux 2.6.33+
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sat, 9 Jan 2010 08:27:17 +0000 (08:27 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sat, 9 Jan 2010 08:27:17 +0000 (08:27 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4101 0192ed92-7a03-0410-a25b-9323aeb14dbd

kernelversion.c

index 6c873b3486f14c9072bb2de8115da4068567f6de..9a6845d03d55bfe9404b28a536eb532fe0511d5a 100644 (file)
@@ -8,9 +8,14 @@
  */
 #include <linux/version.h>
 
-/* Linux 2.6.18+ uses <linux/utsrelease.h> */
 #ifndef UTS_RELEASE
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)
+/* Linux 2.6.33+ uses <generated/utsrelease.h> */
+#include <generated/utsrelease.h>
+#else
+/* Linux 2.6.18 - 2.6.32 uses <linux/utsrelease.h> */
 #include <linux/utsrelease.h>
 #endif
+#endif
 
 char *uts_release = UTS_RELEASE;