mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Code maintenance for Qt 5:
- Fixed compile with MinGW-w64 under Windows git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6866 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
764a6b31ca
commit
31fd6f6261
5 changed files with 22 additions and 7 deletions
|
@ -276,13 +276,13 @@ int bdnet_inet_aton(const char *name, struct in_addr *addr)
|
|||
return (((*addr).s_addr = inet_addr(name)) != INADDR_NONE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
#ifndef __MINGW64_VERSION_MAJOR
|
||||
int sleep(unsigned int sec)
|
||||
{
|
||||
Sleep(sec * 1000);
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
int usleep(unsigned int usec)
|
||||
{
|
||||
|
|
|
@ -131,9 +131,13 @@ std::string bdnet_inet_ntoa(struct in_addr in);
|
|||
*/
|
||||
|
||||
#define EAGAIN 11
|
||||
#define EUSERS 87
|
||||
|
||||
#define EHOSTDOWN 112
|
||||
|
||||
#ifndef __MINGW64_VERSION_MAJOR
|
||||
#define EWOULDBLOCK EAGAIN
|
||||
|
||||
#define EUSERS 87
|
||||
#define ENOTSOCK 88
|
||||
|
||||
#define EOPNOTSUPP 95
|
||||
|
@ -147,10 +151,10 @@ std::string bdnet_inet_ntoa(struct in_addr in);
|
|||
|
||||
#define ETIMEDOUT 10060 // value from pthread.h
|
||||
#define ECONNREFUSED 111
|
||||
#define EHOSTDOWN 112
|
||||
#define EHOSTUNREACH 113
|
||||
#define EALREADY 114
|
||||
#define EINPROGRESS 115
|
||||
#endif
|
||||
|
||||
int bdnet_w2u_errno(int error);
|
||||
|
||||
|
@ -158,7 +162,9 @@ int bdnet_w2u_errno(int error);
|
|||
* ms uses millisecs.
|
||||
* void Sleep(int ms);
|
||||
*/
|
||||
#ifndef __MINGW64_VERSION_MAJOR
|
||||
int sleep(unsigned int sec);
|
||||
#endif
|
||||
int usleep(unsigned int usec);
|
||||
|
||||
#endif // END of WINDOWS defines.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue