mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-08-07 07:37:02 +02: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
@ -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 New Issue
Block a user