Discussion:
get_version.c broken with 2.6.18-rc1
Indan Zupancic
2006-07-06 23:37:46 UTC
Permalink
Hello,

UTS_RELEASE is moved from version.h to utsrelease.h in newer kernels. Fix
suggested by Sam Ravnborg:

Index: scripts/get_version.c
===================================================================
--- scripts/get_version.c (revision 1777)
+++ scripts/get_version.c (working copy)
@@ -1,5 +1,10 @@
#include <linux/version.h>
#include <stdio.h>
+
+#ifndef UTS_RELEASE
+#include <linux/utsrelease.h>
+#endif
+
main()
{
printf("%s", UTS_RELEASE);


BTW, Richard Kennedy's build fixes are still needed with the current svn version.

Greetings,

Indan

Loading...