Portability

- Attempt 4 to eliminate build warning without causing problems.
This commit is contained in:
Paul Beckingham 2014-05-11 10:44:51 -04:00
parent a899fb941d
commit ea6ff48d58

View file

@ -32,6 +32,7 @@
#include <unistd.h> #include <unistd.h>
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <stdint.h>
#include <string.h> #include <string.h>
#include <sys/socket.h> #include <sys/socket.h>
#include <arpa/inet.h> #include <arpa/inet.h>
@ -233,7 +234,7 @@ void TLSClient::connect (const std::string& host, const std::string& port)
#if GNUTLS_VERSION_NUMBER >= 0x030109 #if GNUTLS_VERSION_NUMBER >= 0x030109
gnutls_transport_set_int (_session, _socket); gnutls_transport_set_int (_session, _socket);
#else #else
gnutls_transport_set_ptr (_session, (gnutls_transport_ptr_t) _socket); gnutls_transport_set_ptr (_session, (gnutls_transport_ptr_t) (intptr_t) _socket);
#endif #endif
// Perform the TLS handshake // Perform the TLS handshake