Skip to content

Commit 779b92d

Browse files
author
Sebastiano Merlino
committed
Avoid errors on SOCK_CLOEXEC undefined in kernel < 2.7
1 parent cdb3658 commit 779b92d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/webserver.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545

4646
#define _REENTRANT 1
4747

48+
#ifndef SOCK_CLOEXEC
49+
#define SOCK_CLOEXEC 02000000
50+
#endif
51+
4852
using namespace std;
4953

5054
namespace httpserver

0 commit comments

Comments
 (0)