|
@@ -12,6 +12,13 @@
|
|
|
#ifdef __NR_umount
|
|
|
#include <sys/mount.h>
|
|
|
_syscall1(int, umount, const char *, specialfile);
|
|
|
+#elif defined __NR_umount2
|
|
|
+
|
|
|
+ * emulate umount() using umount2() */
|
|
|
+int umount(const char *special_file, int flags)
|
|
|
+{
|
|
|
+ return _syscall2(int, umount2, const char *, special_file, int, flags);
|
|
|
+}
|
|
|
#else
|
|
|
int umount(const char *special_file)
|
|
|
{
|