From: Florian Fainelli Date: Fri, 5 Jan 2007 22:35:50 +0000 (+0000) Subject: Fix patch fixes the 2.6.19 compilation issues (#1146) X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=commitdiff_plain;h=f2f58f24516181f0a40b221d14d2893c923f4c6f Fix patch fixes the 2.6.19 compilation issues (#1146) SVN-Revision: 6007 --- diff --git a/net/nfs-kernel-server/patches/04-linux_version_code.patch b/net/nfs-kernel-server/patches/04-linux_version_code.patch new file mode 100644 index 0000000000..8126412e99 --- /dev/null +++ b/net/nfs-kernel-server/patches/04-linux_version_code.patch @@ -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; + }