diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-04-16 09:28:54 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-04-16 09:28:54 (GMT) |
commit | 551367d26fffabaf2176de988521a98184f49ad0 (patch) | |
tree | 340c9f6f3cef2dd06af7d89c9f1e5567d9ffd05b /generic | |
parent | 630c5dd08faa0ca5deac0606be3ac1b36b82a6d3 (diff) | |
download | tcl-551367d26fffabaf2176de988521a98184f49ad0.zip tcl-551367d26fffabaf2176de988521a98184f49ad0.tar.gz tcl-551367d26fffabaf2176de988521a98184f49ad0.tar.bz2 |
Upgrade from Winsock 1.1 to Winsock 2.2, which is always available on Win2000+. See: [http://msdn.microsoft.com/en-us/library/windows/desktop/ms742213%28v=vs.85%29.aspx] for details.
Move winsock initialization to TclpInitPlatform(void), so we can be sure everywhere that we have an initialized winsock2.
Stub entries for TclWinGetServByName/TclWinGetSockOpt/TclWinSetSockOpt are no longer necessary (will be removed in 9.0, but are kept in 8.x)
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclIntPlatDecls.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/generic/tclIntPlatDecls.h b/generic/tclIntPlatDecls.h index 80dd2ad..f935efb 100644 --- a/generic/tclIntPlatDecls.h +++ b/generic/tclIntPlatDecls.h @@ -849,7 +849,13 @@ extern TclIntPlatStubs *tclIntPlatStubsPtr; #if defined(__WIN32__) || defined(__CYGWIN__) # undef TclWinNToHS +# undef TclWinGetServByName +# undef TclWinGetSockOpt +# undef TclWinSetSockOpt # define TclWinNToHS ntohs +# define TclWinGetServByName getservbyname +# define TclWinGetSockOpt getsockopt +# define TclWinSetSockOpt setsockopt #else # undef TclpGetPid # define TclpGetPid(pid) ((unsigned long) (pid)) |