comparison nnchat.c @ 69:79982b0aad97

Fix MinGW kludge.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 14 Nov 2008 08:46:16 +0200
parents 3ab7751fdad1
children 5228ad7b4f57
comparison
equal deleted inserted replaced
68:3ab7751fdad1 69:79982b0aad97
648 } 648 }
649 } 649 }
650 650
651 #ifdef __WIN32 651 #ifdef __WIN32
652 { 652 {
653 /* Initialize WinSock, if needed */ 653 /* Initialize WinSock, if needed */
654 WSADATA wsaData; 654 WSADATA wsaData;
655 int err = WSAStartup(0x0101, &wsaData); 655 int err = WSAStartup(0x0101, &wsaData);
656 if (err != 0) { 656 if (err != 0) {
657 THERR("Could not initialize WinSock DLL: %d\n", err); 657 THERR("Could not initialize WinSock DLL: %d\n", err);
658 goto err_exit; 658 goto err_exit;
659 }
660 networkInit = TRUE;
659 } 661 }
660 networkInit = TRUE;
661 #endif 662 #endif
662 663
663 /* Okay ... */ 664 /* Okay ... */
664 THMSG(1, "Trying to resolve host '%s' ...\n", optServer); 665 THMSG(1, "Trying to resolve host '%s' ...\n", optServer);
665 tmpHost = gethostbyname(optServer); 666 tmpHost = gethostbyname(optServer);
1009 fclose(optLogFile); 1010 fclose(optLogFile);
1010 } 1011 }
1011 1012
1012 return 0; 1013 return 0;
1013 } 1014 }
1014
1015 #ifdef __WIN32
1016 /* This is a really weird kludge ... */
1017 }
1018 #endif