summaryrefslogtreecommitdiff
path: root/src/internal
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2016-01-25 00:52:58 +0000
committerRich Felker <dalias@aerifal.cx>2016-01-26 18:27:44 -0500
commita5e133bf29d42101ba90012b3b03b670bbb949b2 (patch)
tree8aa240312fc786f949451088dcf592e0f34eda3c /src/internal
parentf9b8df464da02005a1f3296ad5c16582065befbf (diff)
downloadmusl-a5e133bf29d42101ba90012b3b03b670bbb949b2.tar.gz
musl-a5e133bf29d42101ba90012b3b03b670bbb949b2.tar.bz2
musl-a5e133bf29d42101ba90012b3b03b670bbb949b2.tar.xz
musl-a5e133bf29d42101ba90012b3b03b670bbb949b2.zip
change the internal socketcall selection logic
only use SYS_socketcall if SYSCALL_USE_SOCKETCALL is defined internally, otherwise use direct syscalls. this commit does not change the current behaviour, it is preparation for adding direct syscall numbers for i386.
Diffstat (limited to 'src/internal')
-rw-r--r--src/internal/syscall.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/internal/syscall.h b/src/internal/syscall.h
index 36c772df..ff3cf53a 100644
--- a/src/internal/syscall.h
+++ b/src/internal/syscall.h
@@ -63,7 +63,7 @@ long __syscall_ret(unsigned long), __syscall(syscall_arg_t, ...),
#define __syscall_cp(...) __SYSCALL_DISP(__syscall_cp,__VA_ARGS__)
#define syscall_cp(...) __syscall_ret(__syscall_cp(__VA_ARGS__))
-#ifdef SYS_socket
+#ifndef SYSCALL_USE_SOCKETCALL
#define __socketcall(nm,a,b,c,d,e,f) syscall(SYS_##nm, a, b, c, d, e, f)
#define __socketcall_cp(nm,a,b,c,d,e,f) syscall_cp(SYS_##nm, a, b, c, d, e, f)
#else