소스 검색

- ifdef bdflush update from bug #0000011

Ned Ludd 21 년 전
부모
커밋
4c20fed226
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      libc/sysdeps/linux/common/bdflush.c

+ 9 - 0
libc/sysdeps/linux/common/bdflush.c

@@ -9,4 +9,13 @@
 
 #include "syscalls.h"
 #include <sys/kdaemon.h>
+
+#ifdef __NR_bdflush
 _syscall2(int, bdflush, int, __func, long int, __data);
+#else
+int bdflush(int __func, int __data)
+{
+	__set_errno(ENOSYS);
+	return -1;
+}
+#endif