瀏覽代碼

- ifdef bdflush update from bug #0000011

Ned Ludd 19 年之前
父節點
當前提交
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