2009-01-21 15:21:57 +00:00
|
|
|
#ifndef COMPAT_H
|
|
|
|
|
#define COMPAT_H
|
|
|
|
|
|
|
|
|
|
#ifdef __WIN32__
|
2009-03-18 15:23:10 +00:00
|
|
|
unsigned int sleep (unsigned int seconds);
|
|
|
|
|
char *compat_strerror (int errnum);
|
2009-01-21 15:21:57 +00:00
|
|
|
//const char *inet_ntop(int af, void *src, const char *dst, socklen_t cnt);
|
|
|
|
|
#define INET_ADDRSTRLEN 16
|
|
|
|
|
#define ETIMEDOUT 110
|
|
|
|
|
#define ENOTCONN 107
|
|
|
|
|
#else
|
|
|
|
|
#define compat_strerror strerror
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
#endif
|