mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-27 10:07:19 +02:00
Portability
- Attempt 4 to eliminate build warning without causing problems.
This commit is contained in:
parent
a899fb941d
commit
ea6ff48d58
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue