diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-10 13:51:42 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-10 13:51:42 +0000 |
commit | ef3f84edbe709face0fef13166d23bf61943b8eb (patch) | |
tree | 25a9a75cd82397973b3fa9fca23e359c15812cd1 /main/uclibc/0001-include-sys-mount.h-define-MNT_DETATCH-and-MNT_EXPIR.patch | |
parent | a62a4fae276a8a124facce56b18fa7ec50bc9266 (diff) | |
download | aports-ef3f84edbe709face0fef13166d23bf61943b8eb.tar.bz2 aports-ef3f84edbe709face0fef13166d23bf61943b8eb.tar.xz |
main/uclibc: define MNT_DETATCH in sys/mount.h
Needed for util-vserver
Diffstat (limited to 'main/uclibc/0001-include-sys-mount.h-define-MNT_DETATCH-and-MNT_EXPIR.patch')
-rw-r--r-- | main/uclibc/0001-include-sys-mount.h-define-MNT_DETATCH-and-MNT_EXPIR.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/main/uclibc/0001-include-sys-mount.h-define-MNT_DETATCH-and-MNT_EXPIR.patch b/main/uclibc/0001-include-sys-mount.h-define-MNT_DETATCH-and-MNT_EXPIR.patch new file mode 100644 index 0000000000..88c2490428 --- /dev/null +++ b/main/uclibc/0001-include-sys-mount.h-define-MNT_DETATCH-and-MNT_EXPIR.patch @@ -0,0 +1,31 @@ +From 4e2ea87facfbf595920ebd78e10a57b5ab334526 Mon Sep 17 00:00:00 2001 +From: Natanael Copa <ncopa@alpinelinux.org> +Date: Tue, 8 Sep 2009 12:40:24 +0000 +Subject: [PATCH] include/sys/mount.h: define MNT_DETATCH and MNT_EXPIRE + +This is how glibc does it. +--- + include/sys/mount.h | 6 +++++- + 1 files changed, 5 insertions(+), 1 deletions(-) + +diff --git a/include/sys/mount.h b/include/sys/mount.h +index b305549..f17064d 100644 +--- a/include/sys/mount.h ++++ b/include/sys/mount.h +@@ -96,8 +96,12 @@ enum + /* Possible value for FLAGS parameter of `umount2'. */ + enum + { +- MNT_FORCE = 1 /* Force unmounting. */ ++ MNT_FORCE = 1, /* Force unmounting. */ + #define MNT_FORCE MNT_FORCE ++ MNT_DETACH = 2, /* Just detach from the tree. */ ++#define MNT_DETACH MNT_DETACH ++ MNT_EXPIRE = 4 /* Mark for expiry. */ ++#define MNT_EXPIRE MNT_EXPIRE + }; + + +-- +1.6.4.2 + |