(trunk libT) #3311 "MingW build of Transmission" -- apply further win32 diffs from rb07

This commit is contained in:
Charles Kerr
2010-06-25 20:36:10 +00:00
parent e2b4933777
commit 98cec85e46
6 changed files with 51 additions and 23 deletions

View File

@@ -124,5 +124,13 @@ void tr_netInit( void );
const unsigned char *tr_globalIPv6( void );
#if defined( WIN32) && !defined(QT_DLL)
/* The QT exclusion is because something clashes whith the next include */
#include <ws2tcpip.h> /* socklen_t */
/** @brief Missing in Windows and Mingw */
const char *inet_ntop( int af, const void *src, char *dst, socklen_t cnt );
int inet_pton(int af, const char *src, void *dst);
#endif
#endif /* _TR_NET_H_ */