From 57cd00d4ab872649582e8edaf897814370e68da1 Mon Sep 17 00:00:00 2001 From: Guido Serassio Date: Tue, 8 Jul 2008 11:43:16 +0200 Subject: [PATCH] Windows port: allow build of squid_radius_auth on Windows Experimental - correct helper functionality still NOT TESTED --- .../basic_auth/squid_radius_auth/squid_rad_auth.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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. */ -- 2.47.2