소스 검색

Per http://bugs.uclibc.org/view.php?id=12:
Some newer archs only have umount2

Eric Andersen 21 년 전
부모
커밋
a9c5c662d4
1개의 변경된 파일10개의 추가작업 그리고 0개의 파일을 삭제
  1. 10 0
      libc/sysdeps/linux/common/umount.c

+ 10 - 0
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
+