No release numbers
------------------
+ - Tue Sep 5 04:41:45 GMT 2000
+ - Few more minor things
+ - Added the changes needed for faimtest.
+ - Removed aimdebugd from default build
+
- Tue Sep 5 03:47:26 GMT 2000
- More ANSIfication for win32
- Forgot aim_misc last time.
include Makefile.dynamicrules
-UTIL_DIRS = faimtest aimdebugd #aimdump aimpasswd
+UTIL_DIRS = faimtest #aimdebugd aimdump aimpasswd
utils_all:
@dirs='$(UTIL_DIRS)'; \
return 1;
}
+#ifdef _WIN32
+/*
+ * This is really all thats needed to link against libfaim on win32.
+ *
+ * Note that this particular version of faimtest has never been tested
+ * on win32, but I'm fairly sure it should.
+ */
+int initwsa(void)
+{
+ WORD wVersionRequested;
+ WSADATA wsaData;
+
+ wVersionRequested = MAKEWORD(2,2);
+ return WSAStartup(wVersionRequested, &wsaData);
+}
+#endif /* _WIN32 */
+
static char *screenname,*password,*server=NULL;
int main(void)
server = getenv("AUTHSERVER");
+#ifdef _WIN32
+ if (initwsa() != 0) {
+ printf("faimtest: could not initialize windows sockets\n");
+ return -1;
+ }
+#endif /* _WIN32 */
+
aim_session_init(&aimsess);
authconn = aim_newconn(&aimsess, AIM_CONN_TYPE_AUTH, server?server:FAIM_LOGIN_SERVER);