summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-01-14 08:28:19 +0000
committerEric Andersen <andersen@codepoet.org>2002-01-14 08:28:19 +0000
commit50b14f6bf77048f65377f26fe8737b9bfb8512a1 (patch)
treedf3e6f648959651e0fe32e001ce16438ab3bf389 /libc/sysdeps
parent34eeb65d14a6d0a7044be4939ca42a67607bc55f (diff)
Enable fdatasync
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/syscalls.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/syscalls.c b/libc/sysdeps/linux/common/syscalls.c
index 37bc6f033..2059c9875 100644
--- a/libc/sysdeps/linux/common/syscalls.c
+++ b/libc/sysdeps/linux/common/syscalls.c
@@ -1108,6 +1108,13 @@ _syscall1(pid_t, getsid, pid_t, pid);
#endif
//#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_mlock 150