From ea6ff48d581a0c4bdadd9c73c16cbf08cda4f4d8 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 11 May 2014 10:44:51 -0400 Subject: [PATCH] Portability - Attempt 4 to eliminate build warning without causing problems. --- src/TLSClient.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TLSClient.cpp b/src/TLSClient.cpp index 9d06b09aa..b52624536 100644 --- a/src/TLSClient.cpp +++ b/src/TLSClient.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -233,7 +234,7 @@ void TLSClient::connect (const std::string& host, const std::string& port) #if GNUTLS_VERSION_NUMBER >= 0x030109 gnutls_transport_set_int (_session, _socket); #else - gnutls_transport_set_ptr (_session, (gnutls_transport_ptr_t) _socket); + gnutls_transport_set_ptr (_session, (gnutls_transport_ptr_t) (intptr_t) _socket); #endif // Perform the TLS handshake