diff options
Diffstat (limited to 'doc/examples/tls_server.cpp')
-rw-r--r-- | doc/examples/tls_server.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/examples/tls_server.cpp b/doc/examples/tls_server.cpp index 50c2baba6..963e03313 100644 --- a/doc/examples/tls_server.cpp +++ b/doc/examples/tls_server.cpp @@ -28,6 +28,10 @@ using namespace std::placeholders; #include <errno.h> #include <fcntl.h> +#if !defined(MSG_NOSIGNAL) + #define MSG_NOSIGNAL 0 +#endif + int make_server_socket(const std::string& transport, u16bit port) { int type = (transport == "tcp") ? SOCK_STREAM : SOCK_DGRAM; |