OSDN Git Service

- ifdef bdflush update from bug #0000011
authorNed Ludd <solar@gentoo.org>
Sun, 16 Jan 2005 05:08:10 +0000 (05:08 -0000)
committerNed Ludd <solar@gentoo.org>
Sun, 16 Jan 2005 05:08:10 +0000 (05:08 -0000)
libc/sysdeps/linux/common/bdflush.c

index 40c7df4..f635c78 100644 (file)
@@ -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