diff options
author | Eric Andersen <andersen@codepoet.org> | 2005-01-16 05:19:55 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2005-01-16 05:19:55 +0000 |
commit | a9c5c662d49e2f64995a7c7cf11e0121cdb7fe3d (patch) | |
tree | f2a5ef1a7457a49ad17cfbbba82df6123e44fc8f /libc/sysdeps/linux/common | |
parent | 4c20fed226de4d785110b2914fd8508a28a4a11d (diff) |
Per http://bugs.uclibc.org/view.php?id=12:
Some newer archs only have umount2
Diffstat (limited to 'libc/sysdeps/linux/common')
-rw-r--r-- | libc/sysdeps/linux/common/umount.c | 10 |
1 files changed, 10 insertions, 0 deletions
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 <sys/mount.h> _syscall1(int, umount, const char *, specialfile); +#else +int umount(const char *special_file) +{ + __set_errno(ENOSYS); + return -1; +} +#endif + |