On 27/01/18 11:17, Bruno Haible wrote:
Here's what I'm committing for gnulib:
1) A test case for getsockname() that highlights the problem: It fails
on HP-UX in 64-bit mode (but succeeds in 32-bit mode).
This testcase uses SO_REUSEPORT which is not available everywhere.
From Solaris 9:
test-getsockname.c: In function 'open_server_socket':
test-getsockname.c:43:30: error: 'SO_REUSEPORT' undeclared (first use in
this function)
setsockopt (s, SOL_SOCKET, SO_REUSEPORT, &x, sizeof (x));
^
test-getsockname.c:43:30: note: each undeclared identifier is reported
only once for each function it appears in
Perhaps it could use SO_REUSEADDR on systems lacking SO_REUSEPORT?
-tgc