Oops, I see this configuration warning:
checking whether defines the SHUT_* macros... yes
./configure: line 10600: test: =: unary operator expected
checking for struct sockaddr_storage... yes
This patch fixes it.
2025-01-11 Bruno Haible
sys_socket-h: Fix configuration mistake (regr
POSIX:2024
<https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/sys_un.h.html>
specifies that should define the sa_family_t type.
This patch ensures it.
2025-01-10 Bruno Haible
sys_un-h: Ensure that defines sa_family_t.
* lib/sys_un.in.h: Include or
Another longstanding part of the sys/socket.h specification:
* The header shall define the socklen_t type, which
is an integer type of width of at least 32 bits; see APPLICATION
USAGE.
* The header shall define the sa_family_t unsigned
integer type.
On mingw I see
On OS/2 kLIBC, sa_family_t is unsigned char unless TCPV40HDRS is
defined.
* lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
OS/2 kLIBC unless TCPV40HDRS is defined.
---
lib/sys_socket.in.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/lib/sys_socket.in.h b/lib
On OS/2 kLIBC, sa_family_t is unsigned char unless TCPV40HDRS is
defined.
* lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
OS/2 kLIBC unless TCPV40HDRS is defined.
---
lib/sys_socket.in.h | 5 +
1 file changed, 5 insertions(+)
diff --git a/lib/sys_socket.in.h b/lib
Simon Josefsson wrote:
> Mingw and IRIX does not seem to have sa_family_t.
IRIX 6.5 has it. But other systems, like Haiku, also lack sa_family_t.
Bruno
Mingw and IRIX does not seem to have sa_family_t.
Does anyone know of a system where 'unsigned short' is not the
appropriate type for sa_family_t? It has to be the same type as the
sin_family field in struct sockaddr_in, or the sa_family field in struct
sockaddr. Those structs typica