Hash :
37efd1c5
Author :
Date :
2018-04-24T20:04:05
sys_socket: Make SO_REUSEPORT available across platforms. Reported by Tom G. Christensen <tgc@jupiterrise.com>. * lib/sys_socket.in.h (SO_REUSEPORT): New macro. * doc/posix-headers/sys_socket.texi: Mention the issue. * tests/test-poll.c (SO_REUSEPORT): Remove. * tests/test-select.h: Include <sys/socket.h>. (SO_REUSEPORT): Remove. * modules/select-tests (Depends-on): Add 'sys_socket'.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42
Files:
tests/macros.h
tests/signature.h
tests/test-select.c
tests/test-select.h
tests/test-select-fd.c
tests/test-select-in.sh
tests/test-select-out.sh
tests/test-select-stdin.c
Depends-on:
stdbool
sys_socket
netinet_in
arpa_inet
unistd
sys_ioctl
extensions
inet_pton
errno
perror
pipe-posix
socket
bind
setsockopt
listen
connect
accept
ioctl
close
gettimeofday
configure.ac:
AC_CHECK_HEADERS_ONCE([sys/wait.h])
Makefile.am:
TESTS += test-select test-select-in.sh test-select-out.sh
# test-select-stdin has to be run by hand.
check_PROGRAMS += test-select test-select-fd test-select-stdin
test_select_LDADD = $(LDADD) @LIB_SELECT@ @LIBSOCKET@ $(INET_PTON_LIB)
test_select_fd_LDADD = $(LDADD) @LIB_SELECT@
test_select_stdin_LDADD = $(LDADD) @LIB_SELECT@