extend tipc check to support Android under Termux

This commit is contained in:
Keith Williams 2023-04-18 22:25:00 +01:00
parent 5a5f90e07e
commit 27dda213fe

View File

@ -194,13 +194,14 @@ macro(zmq_check_tcp_tipc)
int main(int argc, char *argv [])
{
struct sockaddr_tipc topsrv;
int sd = socket(AF_TIPC, SOCK_SEQPACKET, 0);
int sd = socket(PF_TIPC, SOCK_SEQPACKET, 0);
memset(&topsrv, 0, sizeof(topsrv));
topsrv.family = AF_TIPC;
topsrv.addrtype = TIPC_ADDR_NAME;
topsrv.addr.name.name.type = TIPC_TOP_SRV;
topsrv.addr.name.name.instance = TIPC_TOP_SRV;
fcntl(sd, F_SETFL, O_NONBLOCK);
tipc_addr(0, 0, 0);
}
"
ZMQ_HAVE_TIPC)