[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fix malfunction of socket functions on HP-UX in 64-bit mode
From: |
Tom G. Christensen |
Subject: |
Re: fix malfunction of socket functions on HP-UX in 64-bit mode |
Date: |
Tue, 24 Apr 2018 18:40:01 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
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
- Re: fix malfunction of socket functions on HP-UX in 64-bit mode,
Tom G. Christensen <=