diff options
-rw-r--r-- | doc/examples/tls_client.cpp | 4 | ||||
-rw-r--r-- | doc/examples/tls_server.cpp | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/doc/examples/tls_client.cpp b/doc/examples/tls_client.cpp index 712a26e26..4023baba8 100644 --- a/doc/examples/tls_client.cpp +++ b/doc/examples/tls_client.cpp @@ -16,6 +16,10 @@ #include <errno.h> #include <fcntl.h> +#if !defined(MSG_NOSIGNAL) + #define MSG_NOSIGNAL 0 +#endif + #if defined(BOTAN_HAS_TLS_SQLITE3_SESSION_MANAGER) #include <botan/tls_session_manager_sqlite.h> #endif 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; |