* ftp_var.h: Include Winsock 2 headers.
* secure.c: Include port-sockets.h on Win32.
* main.c: Include mswsock.h (MS Winsock extensions) so that we get
some socket options we need to convert sockets to "file
descriptors" used in posix-like routines. We now need to pull
this in explictly now that we are using Winsock 2.
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14381
dc483132-0cff-0310-8789-
dd5450dbe970
+2002-04-10 Danilo Almeida <dalmeida@mit.edu>
+
+ * ftp.c: Include Winsock 2 instead of Winsock.
+ * ftp_var.h: Include Winsock 2 headers.
+ * secure.c: Include port-sockets.h on Win32.
+ * main.c: Include mswsock.h (MS Winsock extensions) so that we get
+ some socket options we need to convert sockets to "file
+ descriptors" used in posix-like routines. We now need to pull
+ this in explictly now that we are using Winsock 2.
+
2002-04-04 Sam Hartman <hartmans@mit.edu>
* radix.c (decode;): Patch from Mark Eichin for one char buffer overflow [635]
#ifdef _WIN32
#include <windows.h>
-#include <winsock.h>
+#include <winsock2.h>
#include <sys/timeb.h>
#include <time.h>
#include <crtdbg.h>
#ifdef _WIN32
#include <windows.h>
+#include <winsock2.h>
+#include <ws2tcpip.h>
#endif
#ifdef _WIN32
#include <port-sockets.h>
+#ifdef _WIN32
+/* For SO_SYNCHRONOUS_NONALERT and SO_OPENTYPE: */
+#include <mswsock.h>
+#endif
+
#ifndef _WIN32
uid_t getuid();
#endif
#include <unistd.h>
#endif
#include <sys/types.h>
-#ifndef _WIN32
+#ifdef _WIN32
+#include <port-sockets.h>
+#else
#include <netinet/in.h>
#endif
#include <errno.h>