Use generated/utsrelease.h for Linux 2.6.33+

git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@4101 0192ed92-7a03-0410-a25b-9323aeb14dbd
This commit is contained in:
proski 2010-01-09 08:27:17 +00:00
parent 0d741ab467
commit 52147817c3

View File

@ -8,9 +8,14 @@
*/ */
#include <linux/version.h> #include <linux/version.h>
/* Linux 2.6.18+ uses <linux/utsrelease.h> */
#ifndef UTS_RELEASE #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> #include <linux/utsrelease.h>
#endif #endif
#endif
char *uts_release = UTS_RELEASE; char *uts_release = UTS_RELEASE;