summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/internal/syscall.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/internal/syscall.h b/src/internal/syscall.h
index b3fe7c01..e3a8c5d6 100644
--- a/src/internal/syscall.h
+++ b/src/internal/syscall.h
@@ -191,6 +191,9 @@ long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
#ifdef SYS_fadvise64_64
#undef SYS_fadvise
#define SYS_fadvise SYS_fadvise64_64
+#elif defined(SYS_fadvise64)
+#undef SYS_fadvise
+#define SYS_fadvise SYS_fadvise64
#endif
#ifdef SYS_sendfile64