summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
authorNed Ludd <solar@gentoo.org>2005-01-16 05:08:10 +0000
committerNed Ludd <solar@gentoo.org>2005-01-16 05:08:10 +0000
commit4c20fed226de4d785110b2914fd8508a28a4a11d (patch)
tree8635a62bbcd8b6660a164ccdc2a1bfe2e97e99a5 /libc
parent49d1727594b4cf43aa847becb0c741141b2e28c4 (diff)
- ifdef bdflush update from bug #0000011
Diffstat (limited to 'libc')
-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