summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux')
-rw-r--r--libc/sysdeps/linux/common/bdflush.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/bdflush.c b/libc/sysdeps/linux/common/bdflush.c
index 40c7df423..f635c78ef 100644
--- a/libc/sysdeps/linux/common/bdflush.c
+++ b/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