UDP-LISTEN failed with "...is not available"

This commit is contained in:
Gerhard Rieger 2013-06-24 07:34:48 +02:00
parent a105208cd9
commit ce3714c553
2 changed files with 7 additions and 4 deletions

View file

@ -236,6 +236,9 @@ corrections:
OPENSSL-LISTEN failed with "Bad file descriptor" when used in
write-only context
UDP-LISTEN failed with "...is not available". Thanks to Fred for
reporting this problem
porting:
Red Hat issue 1020203: configure checks fail with some compilers.
Use case: clang

View file

@ -115,8 +115,8 @@ int _xioopen_listen(struct single *xfd, int xioflags, struct sockaddr *us, sockl
char lisname[256];
union sockaddr_union _peername;
union sockaddr_union _sockname;
union sockaddr_union *pa = &_peername; /* peer address */
union sockaddr_union *la = &_sockname; /* local address */
union sockaddr_union *pa; /* peer address */
union sockaddr_union *la; /* local address */
socklen_t pas = sizeof(_peername); /* peer address size */
socklen_t las = sizeof(_sockname); /* local address size */
int result;
@ -229,8 +229,8 @@ int _xioopen_listen(struct single *xfd, int xioflags, struct sockaddr *us, sockl
char sockname[256];
int ps; /* peer socket */
pa = &_peername;
la = &_sockname;
pa = &_peername; /* peer address */
la = &_sockname; /* local address */
salen = sizeof(struct sockaddr);
do {
/*? int level = E_ERROR;*/