maximilian attems
2010-Feb-23 13:55 UTC
[PATCH 1/3] [klibc] nfsmount.h: Add missing definitions.
linux-2.6 2ad780978b7c0c3e7877949f098cbd06e7c73839 cleaned up linux/nfsmount.h and thus a klibc build would produce this:> usr/kinit/nfsmount/mount.c:179: error: 'MNTPROC_MNT' undeclared (first use in this function) > usr/kinit/nfsmount/mount.c:179: error: (Each undeclared identifier is reported only once > usr/kinit/nfsmount/mount.c:179: error: for each function it appears in.) > usr/kinit/nfsmount/mount.c: In function 'mount_v2': > usr/kinit/nfsmount/mount.c:211: error: 'MNTPROC_MNT' undeclared (first use in this function) > usr/kinit/nfsmount/mount.c: In function 'umount_v2': > usr/kinit/nfsmount/mount.c:226: error: 'MNTPROC_UMNT' undeclared (first use in this function) > usr/kinit/nfsmount/mount.c: In function 'mount_v3': > usr/kinit/nfsmount/mount.c:232: error: 'MNTPROC_MNT' undeclared (first use in this function) > usr/kinit/nfsmount/mount.c: In function 'umount_v3': > usr/kinit/nfsmount/mount.c:251: error: 'MNTPROC_UMNT' undeclared (first use in this function) > make[4]: *** [usr/kinit/nfsmount/mount.o] Error 1Signed-off-by: maximilian attems <max at stro.at> --- usr/kinit/nfsmount/nfsmount.h | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/usr/kinit/nfsmount/nfsmount.h b/usr/kinit/nfsmount/nfsmount.h index 6d958bc..59c20cb 100644 --- a/usr/kinit/nfsmount/nfsmount.h +++ b/usr/kinit/nfsmount/nfsmount.h @@ -3,6 +3,9 @@ #include <linux/nfs_mount.h> +#define MNTPROC_MNT 1 +#define MNTPROC_UMNT 3 + extern int nfs_port; extern int nfsmount_main(int argc, char *argv[]); -- 1.6.6.1 --r5Pyd7+fXNt84Ff3 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="0002-klibc-nfsmount-s-PF_INET-AF_INET.patch"