From: Guido Serassio Date: Tue, 8 Jul 2008 09:43:16 +0000 (+0200) Subject: Windows port: allow build of squid_radius_auth on Windows X-Git-Tag: SQUID_3_0_STABLE8~23 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57cd00d4ab872649582e8edaf897814370e68da1;p=thirdparty%2Fsquid.git Windows port: allow build of squid_radius_auth on Windows Experimental - correct helper functionality still NOT TESTED --- diff --git a/helpers/basic_auth/squid_radius_auth/squid_rad_auth.c b/helpers/basic_auth/squid_radius_auth/squid_rad_auth.c index ede9e7e990..fe5fa14103 100644 --- a/helpers/basic_auth/squid_radius_auth/squid_rad_auth.c +++ b/helpers/basic_auth/squid_radius_auth/squid_rad_auth.c @@ -65,6 +65,9 @@ #if HAVE_FCNTL_H #include #endif +#ifdef _SQUID_WIN32_ +#include +#endif #if HAVE_CTYPE_H #include @@ -90,6 +93,12 @@ #if HAVE_STRING_H #include #endif +#if HAVE_GETOPT_H +#include +#endif +#if HAVE_ERRNO_H +#include +#endif #include "md5.h" #include "radius.h" @@ -492,6 +501,12 @@ main(int argc, char **argv) exit(1); } +#ifdef _SQUID_MSWIN_ + { + WSADATA wsaData; + WSAStartup(2, &wsaData); + } +#endif /* * Open a connection to the server. */