summaryrefslogtreecommitdiffstats
path: root/recipes/klibc/klibc-1.5.20/mntproc-definitions.patch
diff options
context:
space:
mode:
authorCliff Brake <cbrake@bec-systems.com>2010-09-13 14:15:35 -0400
committerCliff Brake <cbrake@bec-systems.com>2010-09-13 14:15:35 -0400
commit4ee358534793381d2e87b01781079a3354fd5c1c (patch)
tree729f8b0ce4bdbcd8a16f561fb68da0d66c3a3eb8 /recipes/klibc/klibc-1.5.20/mntproc-definitions.patch
parentbeb17e26ee9b4bc0cf334c3b30560c6eb66b1299 (diff)
parenteda06ec3dde6169a46797f876a82499c4fff8f62 (diff)
downloadopenembedded-324a7c75ac7f591e950836686bfe14332ce6586b.tar.gz
Merge branch 'org.openembedded.dev' into testing-nexttesting_2010-09-13
Diffstat (limited to 'recipes/klibc/klibc-1.5.20/mntproc-definitions.patch')
-rw-r--r--recipes/klibc/klibc-1.5.20/mntproc-definitions.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/klibc/klibc-1.5.20/mntproc-definitions.patch b/recipes/klibc/klibc-1.5.20/mntproc-definitions.patch
new file mode 100644
index 0000000000..5db24cd3aa
--- /dev/null
+++ b/recipes/klibc/klibc-1.5.20/mntproc-definitions.patch
@@ -0,0 +1,20 @@
+Description: MNTPROC_MNT and MNTPROC_UMNT are no longer defined by the
+ kernel. Hack around this by restoring the old definitions.
+Upstream: http://thread.gmane.org/gmane.linux.nfs/28059 suggests a better
+ fix is in progress.
+
+diff -Nur -x '*.orig' -x '*~' klibc-1.5.15/usr/kinit/nfsmount/mount.c klibc-1.5.15.new/usr/kinit/nfsmount/mount.c
+--- klibc-1.5.15/usr/kinit/nfsmount/mount.c 2009-01-04 19:28:03.000000000 +0000
++++ klibc-1.5.15.new/usr/kinit/nfsmount/mount.c 2009-10-04 22:52:44.000000000 +0100
+@@ -44,6 +44,11 @@
+
+ #define MNT_REPLY_MINSIZE (sizeof(struct rpc_reply) + sizeof(uint32_t))
+
++#ifndef MNTPROC_MNT
++# define MNTPROC_MNT 1
++# define MNTPROC_UMNT 3
++#endif /* MNTPROC_MNT */
++
+ static int get_ports(uint32_t server, const struct nfs_mount_data *data)
+ {
+ uint32_t nfs_ver, mount_ver;