]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Windows port: allow build of squid_radius_auth on Windows
authorGuido Serassio <serassio@squid-cache.org>
Tue, 8 Jul 2008 09:43:16 +0000 (11:43 +0200)
committerGuido Serassio <serassio@squid-cache.org>
Tue, 8 Jul 2008 09:43:16 +0000 (11:43 +0200)
Experimental - correct helper functionality still NOT TESTED

helpers/basic_auth/squid_radius_auth/squid_rad_auth.c

index ede9e7e990b509bfe5ef28fa5140353e0240dc2a..fe5fa141034bf1c54ad1014ae4b318ec4c324e2f 100644 (file)
@@ -65,6 +65,9 @@
 #if HAVE_FCNTL_H
 #include       <fcntl.h>
 #endif
+#ifdef _SQUID_WIN32_
+#include <io.h>
+#endif
 
 #if HAVE_CTYPE_H
 #include       <ctype.h>
 #if HAVE_STRING_H
 #include       <string.h>
 #endif
+#if HAVE_GETOPT_H
+#include <getopt.h>
+#endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#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.
      */