git-socket-constants
authorGNU Libc Maintainers <debian-glibc@lists.debian.org>
Thu, 31 Oct 2019 22:31:12 +0000 (22:31 +0000)
committerSamuel Thibault <sthibault@debian.org>
Thu, 31 Oct 2019 22:31:12 +0000 (22:31 +0000)
commit08b69c8323b632acb13e9c0a14a75bc5ca9d1861
tree3f323805a48c96208bfe1fdc0ef8494f934c7709
parent1cdfac0ed27455b3e7b9b664ca28fb6c132151b8
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]