packages/net/nfs-kernel-server/patches/004-linux_version_code.patch
pavlov 14c1a8db5f patch file cleanup... ick.. kaloz you owe me some love
git-svn-id: svn://svn.openwrt.org/openwrt/packages@6526 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-03-05 01:34:12 +00:00

15 lines
517 B
Diff

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;
}