--- parser3/src/main/pa_socks.C 2001/12/28 14:06:52 1.9 +++ parser3/src/main/pa_socks.C 2003/01/21 15:51:15 1.18 @@ -1,32 +1,20 @@ /** @file Parser: socks initialization/finalization. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) - - $Id: pa_socks.C,v 1.9 2001/12/28 14:06:52 paf Exp $ + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) */ +static const char* IDENT_SOCKS_C="$Date: 2003/01/21 15:51:15 $"; + #define NO_UNISTD_H #include "pa_config_includes.h" +#ifdef HAVE_WINSOCK_H #include "pa_exception.h" #include "pa_socks.h" -#ifdef WIN32 #include -#else -//#include -//#include -//#include -//#include -#endif - - - -/* ************************ Common stuff *********************** */ - -#ifdef WIN32 WSADATA wsaData; @@ -39,7 +27,7 @@ void init_socks(Pool& pool) { if ( err != 0 ) { /* Tell the user that we could not find a usable */ /* WinSock DLL. */ - throw Exception(0, 0, + throw Exception(0, 0, "can not WSAStartup, err=%d", err); @@ -61,6 +49,8 @@ void done_socks() { #else +#include "pa_pool.h" + void init_socks(Pool& pool) {} void done_socks() {}