summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-07-20 13:52:26 -0400
committerMike Frysinger <vapier@gentoo.org>2009-07-20 13:52:26 -0400
commit1c097bc0d19bb2a3187529f5881a4b09f8416dc5 (patch)
treee1b3afe75f05dea5db2c73e85753a02b0b7567a8 /libc/sysdeps
parent6d2b253d3c90ece8fd30471798e945bc1365beab (diff)
fdatasync: handle latest alpha syscalls
The latest alpha Linux kernel defines __NR_fdatasync like everyone else and deprecates the older __NR_osf_fdatasync, so support that setup. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/common/fdatasync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/fdatasync.c b/libc/sysdeps/linux/common/fdatasync.c
index 07433bc77..a40f3e00c 100644
--- a/libc/sysdeps/linux/common/fdatasync.c
+++ b/libc/sysdeps/linux/common/fdatasync.c
@@ -10,7 +10,7 @@
#include <sys/syscall.h>
#include <unistd.h>
-#if defined __NR_osf_fdatasync
+#if !defined __NR_fdatasync && defined __NR_osf_fdatasync
# define __NR_fdatasync __NR_osf_fdatasync
#endif