diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/getsockname.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/getsockname.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/getsockname.c b/sysdeps/unix/sysv/linux/getsockname.c index 6c84acec25..78b6050a98 100644 --- a/sysdeps/unix/sysv/linux/getsockname.c +++ b/sysdeps/unix/sysv/linux/getsockname.c @@ -20,10 +20,16 @@ #include <sys/socket.h> #include <socketcall.h> +#include <kernel-features.h> +#include <sys/syscall.h> int __getsockname (int fd, __SOCKADDR_ARG addr, socklen_t *len) { +#ifdef __ASSUME_GETSOCKNAME_SYSCALL + return INLINE_SYSCALL (getsockname, 3, fd, addr.__sockaddr__, len); +#else return SOCKETCALL (getsockname, fd, addr.__sockaddr__, len); +#endif } weak_alias (__getsockname, getsockname) |