mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-11 02:38:09 +09:00
Fix cross compilation.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@246 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -64,11 +64,13 @@ static void sock_set_blocking(socket_t sock){
|
|||||||
ioctlsocket(sock, FIONBIO, &nonblocking);
|
ioctlsocket(sock, FIONBIO, &nonblocking);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef gai_strerror
|
||||||
char WSAAPI *gai_strerrorA(int code){
|
char WSAAPI *gai_strerrorA(int code){
|
||||||
static char buffer[256];
|
static char buffer[256];
|
||||||
snprintf(buffer,256,"Undetermined error code (%d)",code);
|
snprintf(buffer,256,"Undetermined error code (%d)",code);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user