diff options
author | Jeremy Lainé <jeremy.laine@m4x.org> | 2009-10-27 18:46:05 +0100 |
---|---|---|
committer | Jeremy Lainé <jeremy.laine@m4x.org> | 2009-10-27 18:46:05 +0100 |
commit | 6f36bd6e28bce49b72e5a3cff77e0c74b8f65e41 (patch) | |
tree | 1948ec9ae2e217677a6b985056ebb4d070496b5a /recipes/klibc/klibc-1.5.15/mntproc-definitions.patch | |
parent | eeac84ae328fa18770c3724a23ff847f954f60dc (diff) |
klibc-1.5.15: fix build against 2.6.31 linux headers
* apply patches from Ubuntu to build against 2.6.31 linux headers
Diffstat (limited to 'recipes/klibc/klibc-1.5.15/mntproc-definitions.patch')
-rw-r--r-- | recipes/klibc/klibc-1.5.15/mntproc-definitions.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/recipes/klibc/klibc-1.5.15/mntproc-definitions.patch b/recipes/klibc/klibc-1.5.15/mntproc-definitions.patch new file mode 100644 index 0000000000..eea606be2b --- /dev/null +++ b/recipes/klibc/klibc-1.5.15/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; |