mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-23 07:08:06 -04:00
[BUILD] build fixes for Solaris
One build error in stream_sock.c when MSG_NOSIGNAL is not defined, and a warning in task.c.
This commit is contained in:
parent
7c84bab879
commit
87bed62a92
2 changed files with 4 additions and 2 deletions
|
|
@ -560,11 +560,11 @@ static int stream_sock_write_loop(struct stream_interface *si, struct buffer *b)
|
|||
int skerr;
|
||||
socklen_t lskerr = sizeof(skerr);
|
||||
|
||||
ret = getsockopt(fd, SOL_SOCKET, SO_ERROR, &skerr, &lskerr);
|
||||
ret = getsockopt(si->fd, SOL_SOCKET, SO_ERROR, &skerr, &lskerr);
|
||||
if (ret == -1 || skerr)
|
||||
ret = -1;
|
||||
else
|
||||
ret = send(fd, b->w, max, MSG_DONTWAIT);
|
||||
ret = send(si->fd, b->w, max, MSG_DONTWAIT);
|
||||
}
|
||||
#else
|
||||
ret = send(si->fd, b->w, max, MSG_DONTWAIT | MSG_NOSIGNAL);
|
||||
|
|
|
|||
|
|
@ -10,6 +10,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <common/config.h>
|
||||
#include <common/eb32tree.h>
|
||||
#include <common/memory.h>
|
||||
|
|
|
|||
Loading…
Reference in a new issue