diff options
Diffstat (limited to 'sysdeps/unix/sysv/linux/shutdown.c')
-rw-r--r-- | sysdeps/unix/sysv/linux/shutdown.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/shutdown.c b/sysdeps/unix/sysv/linux/shutdown.c index 8b3a3d87f5..21ec4ccb23 100644 --- a/sysdeps/unix/sysv/linux/shutdown.c +++ b/sysdeps/unix/sysv/linux/shutdown.c @@ -20,10 +20,16 @@ #include <sys/socket.h> #include <socketcall.h> +#include <kernel-features.h> +#include <sys/syscall.h> int __shutdown (int fd, int how) { +#ifdef __ASSUME_SHUTDOWN_SYSCALL + return INLINE_SYSCALL (shutdown, 2, fd, how); +#else return SOCKETCALL (shutdown, fd, how); +#endif } weak_alias (__shutdown, shutdown) |