mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-09-06 13:41:28 +00:00
solaris fixes
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
||||
|
||||
extern struct uwsgi_server uwsgi;
|
||||
|
||||
#ifdef __linux__
|
||||
#if defined(__linux__) || defined(__sun__)
|
||||
ssize_t sctp_sendv(int s, struct iovec *iov, size_t iov_len,
|
||||
const struct sctp_sndrcvinfo *sinfo, int flags)
|
||||
{
|
||||
|
||||
@@ -215,7 +215,15 @@ int connect_to_sctp(char *socket_names, int queue) {
|
||||
goto clear;
|
||||
}
|
||||
|
||||
// solaris has no sctp_connectx support
|
||||
#ifdef __sun__
|
||||
if (addresses > 1) {
|
||||
uwsgi_log("*** You will only connect to the first specified SCTP address !!! ***\n");
|
||||
}
|
||||
if (connect(serverfd, (struct sockaddr *) sins, sizeof(struct sockaddr_in))) {
|
||||
#else
|
||||
if (sctp_connectx(serverfd, (struct sockaddr *) sins, addresses, NULL)) {
|
||||
#endif
|
||||
uwsgi_error("sctp_connectx()");
|
||||
close(serverfd);
|
||||
goto clear;
|
||||
|
||||
Reference in New Issue
Block a user