From: florian 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://207.154.207.93/?a=commitdiff_plain;h=a467792e9b6a05f367157307958df39f8c407d4a;p=packages.git 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 --- 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 000000000..8126412e9 --- /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; + }