git-socket-constants
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Mon, 30 Dec 2019 18:12:42 +0000 (18:12 +0000)
committerAurelien Jarno <aurel32@debian.org>
Mon, 30 Dec 2019 18:12:42 +0000 (18:12 +0000)
commitdb6441fce885ddf0031ce2bda3bbe2e0bf9edb10
tree82152c507ea459e433c4dc1cecdd0cc50bf669f6
parent345f80b9841104539619e677bbffc336945da617
git-socket-constants

2019-07-24  Florian Weimer  <fweimer@redhat.com>

[BZ #24532]
Linux: Use in-tree copy of SO_ constants for !__USE_MISC.
* sysdeps/unix/sysv/linux/Makefile [$(subdir) == socket]
(sysdep_headers): Add bits/socket-constants.h.
(tests-special): Add tst-socket-consts.out.
(tst-socket-consts.out): New target.
* sysdeps/unix/sysv/linux/bits/socket.h: Remove macro tracking
around <asm/unistd.h>.
[__USE_MISC]: Include <bits/types/time_t.h> before <asm/socket.h>.
[!__USE_MISC]: Include <sys/socket-constants.h> instead of
<asm/socket.h>.
* sysdeps/unix/sysv/linux/bits/tst-socket-consts.py: New file.
* sysdeps/unix/sysv/linux/bits/socket-constants.h: Likewise.
* sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h: Likewise.
* sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h: Likewise.
* sysdeps/unix/sysv/linux/mips/bits/socket-constants.h: Likewise.
* sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h:
Likewise.
* sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h: Likewise.

Gbp-Pq: Topic any
Gbp-Pq: Name git-socket-constants.diff
sysdeps/unix/sysv/linux/Makefile
sysdeps/unix/sysv/linux/alpha/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/bits/socket.h
sysdeps/unix/sysv/linux/hppa/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/mips/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/powerpc/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/sparc/bits/socket-constants.h [new file with mode: 0644]
sysdeps/unix/sysv/linux/tst-socket-consts.py [new file with mode: 0644]