# HG changeset patch # User Herman Bloggs # Date 1034364622 0 # Node ID bfd8df165f32d5ef1e9c95102945d41301a27ff4 # Parent 6278486dc21deb44265ca30997d3fbb9fac08bde [gaim-migrate @ 3770] win32 fix committer: Tailor Script diff -r 6278486dc21d -r bfd8df165f32 src/protocols/oscar/ft.c --- a/src/protocols/oscar/ft.c Fri Oct 11 17:35:23 2002 +0000 +++ b/src/protocols/oscar/ft.c Fri Oct 11 19:30:22 2002 +0000 @@ -17,11 +17,14 @@ #include #include /* for aim_directim_initiate */ #include /* for inet_ntoa */ -#else +#endif + +#include "gaim.h" + +#ifdef _WIN32 #include "win32dep.h" #endif -#include "gaim.h" /* TODO: o look for memory leaks.. there's going to be shitloads, i'm sure. @@ -965,6 +968,9 @@ int listenfd; const int on = 1; struct sockaddr_in sockin; +#ifdef _WIN32 + u_long imode; +#endif if ((listenfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { perror("socket(listenfd)"); @@ -1003,7 +1009,12 @@ #endif return -1; } +#ifndef _WIN32 fcntl(listenfd, F_SETFL, O_NONBLOCK); +#else + imode = 1; + ioctlsocket(listenfd, FIONBIO, &imode); +#endif return listenfd; #endif }