mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-07 06:43:00 +03:00
Linux: Assume and consolidate getpeername 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:
@@ -46,6 +46,7 @@
|
||||
in 4.20 (but present for 64-bit in all supported kernel versions). */
|
||||
#if !defined __arch64__ && __LINUX_KERNEL_VERSION < 0x041400
|
||||
# undef __ASSUME_GETSOCKNAME_SYSCALL
|
||||
# undef __ASSUME_GETPEERNAME_SYSCALL
|
||||
#endif
|
||||
|
||||
/* These syscalls were added for both 32-bit and 64-bit in 4.4. */
|
||||
|
Reference in New Issue
Block a user