Fix patch fixes the 2.6.19 compilation issues (#1146)

git-svn-id: svn://svn.openwrt.org/openwrt/packages@6007 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2007-01-05 22:35:50 +00:00
parent 1284dcf5fe
commit a467792e9b

View File

@ -0,0 +1,14 @@
diff -urN nfs-utils-1.0.7/tools/getkversion/getkversion.c nfs-utils-1.0.7.new/tools/getkversion/getkversion.c
--- nfs-utils-1.0.7/tools/getkversion/getkversion.c 1999-10-19 01:21:12.000000000 +0200
+++ nfs-utils-1.0.7.new/tools/getkversion/getkversion.c 2007-01-05 23:25:14.000000000 +0100
@@ -12,6 +12,10 @@
int
main(void) /* This is for Dan Popp ;) */
{
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
+ printf("%s\n", LINUX_VERSION_CODE);
+#else
printf("%s\n", UTS_RELEASE);
+#endif
return 0;
}