mirror of
https://repo.or.cz/socat.git
synced 2025-07-07 21:36:32 +00:00
AIX: Fixed runtime issues
This commit is contained in:
parent
967e2b24b5
commit
e1a2e37480
4 changed files with 20 additions and 12 deletions
22
xio-unix.c
22
xio-unix.c
|
@ -576,11 +576,11 @@ _xioopen_unix_client(xiosingle_t *xfd, int xioflags, unsigned groups,
|
|||
/* xfd->dtype = DATA_STREAM; // is default */
|
||||
/* this function handles AF_UNIX with EPROTOTYPE specially for us */
|
||||
if ((result =
|
||||
xioopen_connect(xfd,
|
||||
needbind?&us:NULL, uslen,
|
||||
&them.soa, themlen,
|
||||
opts, pf, socktype?socktype:SOCK_STREAM, protocol,
|
||||
false)) == 0)
|
||||
_xioopen_connect(xfd,
|
||||
needbind?&us:NULL, uslen,
|
||||
&them.soa, themlen,
|
||||
opts, pf, socktype?socktype:SOCK_STREAM, protocol,
|
||||
false, E_INFO)) == 0)
|
||||
break;
|
||||
if (errno != EPROTOTYPE || socktype != 0)
|
||||
break;
|
||||
|
@ -590,13 +590,13 @@ _xioopen_unix_client(xiosingle_t *xfd, int xioflags, unsigned groups,
|
|||
|
||||
socktype = SOCK_SEQPACKET;
|
||||
if ((result =
|
||||
xioopen_connect(xfd,
|
||||
needbind?&us:NULL, uslen,
|
||||
(struct sockaddr *)&them, themlen,
|
||||
opts, pf, SOCK_SEQPACKET, protocol,
|
||||
false)) == 0)
|
||||
_xioopen_connect(xfd,
|
||||
needbind?&us:NULL, uslen,
|
||||
(struct sockaddr *)&them, themlen,
|
||||
opts, pf, SOCK_SEQPACKET, protocol,
|
||||
false, E_INFO)) == 0)
|
||||
break;
|
||||
if (errno != EPROTOTYPE)
|
||||
if (errno != EPROTOTYPE && errno != EPROTONOSUPPORT/*AIX*/)
|
||||
break;
|
||||
if (needbind)
|
||||
Unlink(us.un.sun_path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue