fixes compile for ldap module in php5
[openwrt/svn-archive/archive.git] / net / nfs-kernel-server / patches / 04-linux_version_code.patch
1 diff -urN nfs-utils-1.0.7/tools/getkversion/getkversion.c nfs-utils-1.0.7.new/tools/getkversion/getkversion.c
2 --- nfs-utils-1.0.7/tools/getkversion/getkversion.c 1999-10-19 01:21:12.000000000 +0200
3 +++ nfs-utils-1.0.7.new/tools/getkversion/getkversion.c 2007-01-05 23:25:14.000000000 +0100
4 @@ -12,6 +12,10 @@
5 int
6 main(void) /* This is for Dan Popp ;) */
7 {
8 +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,19)
9 + printf("%s\n", LINUX_VERSION_CODE);
10 +#else
11 printf("%s\n", UTS_RELEASE);
12 +#endif
13 return 0;
14 }