* ftp.c: Include Winsock 2 instead of Winsock.
authorDanilo Almeida <dalmeida@mit.edu>
Thu, 11 Apr 2002 03:32:03 +0000 (03:32 +0000)
committerDanilo Almeida <dalmeida@mit.edu>
Thu, 11 Apr 2002 03:32:03 +0000 (03:32 +0000)
* 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

src/appl/gssftp/ftp/ChangeLog
src/appl/gssftp/ftp/ftp.c
src/appl/gssftp/ftp/ftp_var.h
src/appl/gssftp/ftp/main.c
src/appl/gssftp/ftp/secure.c

index 0cf21a989ecede83b785314f698782eb88a1deca..85e69cb38bb2077c93a4a3ea1bbcfb5a217c2293 100644 (file)
@@ -1,3 +1,13 @@
+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]
index 8433d7cdc4ad187254a3296991fbf7c0ef04fca6..d7f48408026598bbf05021211aaaaa56dba12cc4 100644 (file)
@@ -63,7 +63,7 @@ static char sccsid[] = "@(#)ftp.c     5.38 (Berkeley) 4/22/91";
 
 #ifdef _WIN32
 #include <windows.h>
-#include <winsock.h>
+#include <winsock2.h>
 #include <sys/timeb.h>
 #include <time.h>
 #include <crtdbg.h>
index 469e50686aee7cba8c2ce410c9e6cc834825a3b5..79928b3f346240e66bad54b8dfa520bc4c6d6c71 100644 (file)
@@ -35,6 +35,8 @@
 
 #ifdef _WIN32
 #include <windows.h>
+#include <winsock2.h>
+#include <ws2tcpip.h>
 #endif
 
 #ifdef _WIN32
index 1b0ae8511dc1362557a7d22859afad58cd2a692a..60171da55c46192a7102babfaf9ce64feaa6a081 100644 (file)
@@ -78,6 +78,11 @@ static char sccsid[] = "@(#)main.c   5.18 (Berkeley) 3/1/91";
 
 #include <port-sockets.h>
 
+#ifdef _WIN32
+/* For SO_SYNCHRONOUS_NONALERT and SO_OPENTYPE: */
+#include <mswsock.h>
+#endif
+
 #ifndef _WIN32
 uid_t  getuid();
 #endif
index d23e358723cf2bc4af8a4d90731b8a68bb269de1..999641b7723b36281f388e6495a8475510be0f36 100644 (file)
@@ -35,7 +35,9 @@ extern Key_schedule schedule;
 #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>