mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Linux: Assume and consolidate bind wire-up syscall
And disable if kernel does not support it. Checked on x86_64-linux-gnu and i686-linux-gnu. Reviewed-by: Carlos O'Donell <carlos@redhat.com> Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
committed by
Adhemerval Zanella
parent
a33919698b
commit
215bf99347
@@ -48,10 +48,13 @@
|
||||
|
||||
/* These syscalls were added for both 32-bit and 64-bit in 4.4. */
|
||||
#if __LINUX_KERNEL_VERSION >= 0x040400
|
||||
# define __ASSUME_BIND_SYSCALL 1
|
||||
# define __ASSUME_LISTEN_SYSCALL 1
|
||||
#endif
|
||||
|
||||
#if __LINUX_KERNEL_VERSION < 0x040400
|
||||
# undef __ASSUME_BIND_SYSCALL
|
||||
#endif
|
||||
|
||||
#ifdef __arch64__
|
||||
/* sparc64 defines __NR_pause, however it is not supported (ENOSYS).
|
||||
Undefine so pause.c can use a correct alternative. */
|
||||
|
Reference in New Issue
Block a user