Some fixes for compiling with Win32 :)

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@783 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-10-26 18:12:20 +00:00 committed by cras
commit df10f182c0
8 changed files with 50 additions and 12 deletions

View file

@ -303,7 +303,7 @@ int net_getsockname(int handle, IPADDR *addr, int *port)
#ifdef HAVE_IPV6
if (getsockname(handle, &so.sin6, &len) == -1)
#else
if (getsockname(handle, &so.sin, &len) == -1)
if (getsockname(handle, (struct sockaddr *) &so.sin, &len) == -1)
#endif
return -1;