From 5046a84d82cd8125c981680d449f4d8c7ea5deb8 Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Sat, 16 Apr 2011 13:51:08 +0200 Subject: umount: make umount2 depend on UCLIBC_LINUX_SPECIFIC Add hidden umount2 to be used in umount eventually. Rework umount to either use directly umount2 syscall or function. docs say, that mount and umount are also Linux specific Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/common/umount2.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libc/sysdeps/linux/common/umount2.c') diff --git a/libc/sysdeps/linux/common/umount2.c b/libc/sysdeps/linux/common/umount2.c index 2cc4a2338..08e0f3388 100644 --- a/libc/sysdeps/linux/common/umount2.c +++ b/libc/sysdeps/linux/common/umount2.c @@ -9,9 +9,8 @@ #include -#if defined __USE_GNU -#include -#ifdef __NR_umount2 /* Old kernels don't have umount2 */ +#if defined __UCLIBC_LINUX_SPECIFIC__ && defined __NR_umount2 +# include _syscall2(int, umount2, const char *, special_file, int, flags) -#endif +libc_hidden_def(umount2) #endif -- cgit v1.2.3