about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015-02-07 17:25:58 +0100
committerRich Felker <dalias@aerifal.cx>2015-02-07 11:55:00 -0500
commite63833cd43a778f639e4fdf5d86cd5c526cc5db2 (patch)
tree53cbec318d644db42ad04465a24c91a000de50e8 /src
parent61b1d102129990f6e903c6ddcf46c7d79d1a1e99 (diff)
downloadmusl-e63833cd43a778f639e4fdf5d86cd5c526cc5db2.tar.gz
musl-e63833cd43a778f639e4fdf5d86cd5c526cc5db2.tar.xz
musl-e63833cd43a778f639e4fdf5d86cd5c526cc5db2.zip
remove cruft from x86_64 syscall.h
x86_64 syscall.h defined some musl internal syscall names and made
them public. These defines were already moved to src/internal/syscall.h
(except for SYS_fadvise which is added now) so the cruft in x86_64
syscall.h is not needed.
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