Browse Source

Enable fdatasync

Eric Andersen 23 years ago
parent
commit
50b14f6bf7
1 changed files with 7 additions and 0 deletions
  1. 7 0
      libc/sysdeps/linux/common/syscalls.c

+ 7 - 0
libc/sysdeps/linux/common/syscalls.c

@@ -1108,6 +1108,13 @@ _syscall1(pid_t, getsid, pid_t, pid);
 #endif
 #endif
 
 
 //#define __NR_fdatasync        148
 //#define __NR_fdatasync        148
+#ifdef __NR_fdatasync
+#ifdef L_fdatasync
+#include <unistd.h>
+_syscall1(int, fdatasync, int, fd);
+#endif
+#endif
+
 //#define __NR__sysctl          149
 //#define __NR__sysctl          149
 
 
 //#define __NR_mlock            150
 //#define __NR_mlock            150