From a9c5c662d49e2f64995a7c7cf11e0121cdb7fe3d Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 16 Jan 2005 05:19:55 +0000 Subject: Per http://bugs.uclibc.org/view.php?id=12: Some newer archs only have umount2 --- libc/sysdeps/linux/common/umount.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libc/sysdeps/linux/common/umount.c b/libc/sysdeps/linux/common/umount.c index 10cac6155..6457ddf30 100644 --- a/libc/sysdeps/linux/common/umount.c +++ b/libc/sysdeps/linux/common/umount.c @@ -8,5 +8,15 @@ */ #include "syscalls.h" + +#ifdef __NR_umount /* Some newer archs only have umount2 */ #include _syscall1(int, umount, const char *, specialfile); +#else +int umount(const char *special_file) +{ + __set_errno(ENOSYS); + return -1; +} +#endif + -- cgit v1.2.3