mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-04 12:20:42 +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);
|
||||
}
|
||||
|
||||
#ifndef gai_strerror
|
||||
char WSAAPI *gai_strerrorA(int code){
|
||||
static char buffer[256];
|
||||
snprintf(buffer,256,"Undetermined error code (%d)",code);
|
||||
return buffer;
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user