summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libc/sysdeps/linux/common/umount.c10
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
+