mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-17 19:30:36 +00:00
Fix QNX build
This commit is contained in:
1 parent
374ab4ecf0
commit
79e5841483
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -2837,7 +2837,7 @@ static void setsockopts(struct mg_connection *c) {
|
|||||||
int idle = 60;
|
int idle = 60;
|
||||||
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle));
|
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle));
|
||||||
#endif
|
#endif
|
||||||
#ifndef _WIN32
|
#if !defined(_WIN32) && !defined(__QNX__)
|
||||||
{
|
{
|
||||||
int cnt = 3, intvl = 20;
|
int cnt = 3, intvl = 20;
|
||||||
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt));
|
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt));
|
||||||
|
|||||||
+1
-1
@@ -303,7 +303,7 @@ static void setsockopts(struct mg_connection *c) {
|
|||||||
int idle = 60;
|
int idle = 60;
|
||||||
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle));
|
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPIDLE, &idle, sizeof(idle));
|
||||||
#endif
|
#endif
|
||||||
#ifndef _WIN32
|
#if !defined(_WIN32) && !defined(__QNX__)
|
||||||
{
|
{
|
||||||
int cnt = 3, intvl = 20;
|
int cnt = 3, intvl = 20;
|
||||||
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt));
|
setsockopt(FD(c), IPPROTO_TCP, TCP_KEEPCNT, &cnt, sizeof(cnt));
|
||||||
|
|||||||
Reference in new issue
Block a user