* earlier) kernel. 2.2.x and higher flush filesystem buffers automatically.
*/
-#include "busybox.h"
#include <sys/param.h>
#include <sys/syslog.h>
#include <unistd.h> /* for getopt() */
#include <stdlib.h>
-
-#if defined(__GLIBC__)
-#include <sys/kdaemon.h>
+#if __GNU_LIBRARY__ > 5
+ #include <sys/kdaemon.h>
#else
-#include <sys/syscall.h>
-#include <linux/unistd.h>
-static _syscall2(int, bdflush, int, func, int, data);
-#endif /* __GLIBC__ */
+ extern int bdflush (int func, long int data);
+#endif
+
+#include "busybox.h"
static unsigned int sync_duration = 30;
static unsigned int flush_duration = 5;