Update of /cvsroot/iaxclient/iaxclient/lib
In directory sc8-pr-cvs1:/tmp/cvs-serv7311
Modified Files:
winfuncs.c
Log Message:
initialize WinSock silliness on Win32, for IAX2 version.
Index: winfuncs.c
===================================================================
RCS file: /cvsroot/iaxclient/iaxclient/lib/winfuncs.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- winfuncs.c 6 Jun 2003 22:17:22 -0000 1.4
+++ winfuncs.c 11 Jun 2003 20:46:41 -0000 1.5
@@ -21,9 +21,19 @@
void os_init(void)
{
time_t t;
+#ifdef IAXC_IAX2
+ WSADATA wsd;
+
+ if(WSAStartup(0x0101,&wsd))
+ { // Error message?
+ exit(1);
+ }
+#endif
+
time(&t);
startuptime = ((t % 86400) * 1000) - GetTickCount();
}
+
/* yes, it could have just been a #define, but that makes linking trickier */
void iaxc_millisleep(long ms)
|