diff options
author | Adhemerval Zanella Netto <adhemerval.zanella@linaro.org> | 2022-10-19 19:14:21 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-12-07 13:42:05 -0300 |
commit | 215bf99347be78f80ea1e9d7d717a4b67616e28d (patch) | |
tree | 10e3902413668921347b400f32932f2ce63dbc03 /sysdeps/unix/sysv/linux/sparc | |
parent | a33919698b8b7e556f2eaf7d8550842ee654f2ae (diff) | |
download | glibc-215bf99347be78f80ea1e9d7d717a4b67616e28d.tar glibc-215bf99347be78f80ea1e9d7d717a4b67616e28d.tar.gz glibc-215bf99347be78f80ea1e9d7d717a4b67616e28d.tar.bz2 glibc-215bf99347be78f80ea1e9d7d717a4b67616e28d.zip |
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>
Diffstat (limited to 'sysdeps/unix/sysv/linux/sparc')
-rw-r--r-- | sysdeps/unix/sysv/linux/sparc/kernel-features.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/sparc/kernel-features.h b/sysdeps/unix/sysv/linux/sparc/kernel-features.h index 6cbe189b2f..2b7056c0fb 100644 --- a/sysdeps/unix/sysv/linux/sparc/kernel-features.h +++ b/sysdeps/unix/sysv/linux/sparc/kernel-features.h @@ -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. */ |