diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-04-16 09:44:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2014-04-16 09:44:12 (GMT) |
commit | 7f0bded35ff4e57468cb618dd14770a60d268195 (patch) | |
tree | a8378e57b9eeb9e337a290adaf5a181c090624fc /generic | |
parent | f4ae34e81b29f1fd3addd470eda2f7a42fa7225e (diff) | |
parent | 551367d26fffabaf2176de988521a98184f49ad0 (diff) | |
download | tcl-7f0bded35ff4e57468cb618dd14770a60d268195.zip tcl-7f0bded35ff4e57468cb618dd14770a60d268195.tar.gz tcl-7f0bded35ff4e57468cb618dd14770a60d268195.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 2c74b5a..eb02bb7 100644 --- a/generic/tclIntPlatDecls.h +++ b/generic/tclIntPlatDecls.h @@ -552,7 +552,13 @@ extern const 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)) |