mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-05 22:08:19 +00:00
Fix kernel version detection (#2187).
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4738 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
e4ecbc9a90
commit
f96dc0266f
3 files changed
+11
-5
No files matched your search
@@ -3,6 +3,9 @@
|
||||
* get the kernel version from <linux/version.h>.
|
||||
* A simple grep doesn't work for Mandrake and Red Hat distributions
|
||||
* that contain multiple UTS_RELEASE definitions in version.h.
|
||||
*
|
||||
* Note: since kernel 2.6.17, the definition of UTS_RELEASE has
|
||||
* moved to <linux/utsrelease.h> so this no longer works.
|
||||
*/
|
||||
#include <linux/version.h>
|
||||
char *uts_release=UTS_RELEASE;
|
||||
Reference in new issue
Block a user