2007-10-04 17:07:51 +04:00
|
|
|
/* This file is used for a trick to determine the version of the kernel
|
|
|
|
* build tree. Simply grepping <linux/version.h> doesn't work, since
|
|
|
|
* some distributions have multiple UTS_RELEASE definitions in that
|
|
|
|
* file.
|
|
|
|
* Taken from the lm_sensors project.
|
|
|
|
*
|
|
|
|
* $Id$
|
|
|
|
*/
|
|
|
|
#include <linux/version.h>
|
|
|
|
|
|
|
|
#ifndef UTS_RELEASE
|
2010-01-09 11:27:17 +03:00
|
|
|
#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> */
|
2007-10-04 17:07:51 +04:00
|
|
|
#include <linux/utsrelease.h>
|
|
|
|
#endif
|
2010-01-09 11:27:17 +03:00
|
|
|
#endif
|
2007-10-04 17:07:51 +04:00
|
|
|
|
|
|
|
char *uts_release = UTS_RELEASE;
|