1 diff -ur a/osdep.m4 b/osdep.m4
2 --- a/osdep.m4 2017-01-18 09:11:20.000000000 -0500
3 +++ b/osdep.m4 2023-10-21 12:43:59.464797030 -0400
6 AC_MSG_CHECKING([for sa_len in sockaddr])
10 #include <sys/socket.h>
11 ], [struct sockaddr sa;
13 unset sa_len_type_found
14 for type in uint8_t "unsigned char"; do
17 #include <sys/types.h>
18 #include <sys/socket.h>], [
21 sa_len_ptr = &sa.sa_len;
22 -sa_len_ptr++; /* use to avoid warning/error */],
23 +(*sa_len_ptr)++; /* use to avoid warning/error */],
24 [AC_DEFINE_UNQUOTED(sa_len_type, [$type], [sa_len type])
28 in_port_t, in_addr_t],
32 #include <sys/types.h>
33 #include <netinet/in.h>