Usage of winsock2.h in win/tclWinPort.h is wrong
Closed / Fixed222568ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2000-11-16 07:43:01
Usage of winsock2.h in win/tclWinPort.h is wrong. This is no problem for Tcl itself, but extensions trying to compile on Windows may get errors (redefinition of FD_SET, etc.) which prevent a succesful build. From the history it seems that winsock.h (v1) was used in the beginning and is right now, with an intermediate time where winsock v2 was tried out. It seems that the switch back from v2 to v1 was not complete. Patch. ------------------------------------------------------------------------------------ *** tclWinPort.h.origThu Nov 16 00:22:02 2000 --- tclWinPort.hThu Nov 16 00:22:02 2000 *************** *** 66,72 **** #include <tchar.h> #include <time.h> ! #include <winsock2.h> #define WIN32_LEAN_AND_MEAN #include <windows.h> --- 66,72 ---- #include <tchar.h> #include <time.h> ! #include <winsock.h> #define WIN32_LEAN_AND_MEAN #include <windows.h> ------------------------------------------------------------------------------------
andreas_kupriesplain2000-11-17 14:43:20
Fixed with Patch <a href="http://sourceforge.net/patch/?func=detailpatch&patch_id=102404&group_id=10894">102404</>
dgp Ticket [222568ffff]: 3 changes
[History diff]2001-04-05 07:09:39
hobbsplain2001-09-21 01:45:55
Logged In: YES user_id=72656 Update to this - this has been converted back, because it is necessary for Win64 compatability. Other extensions should try not to use names reserved by the core OS.
Log in (anonymous is fine) to add a comment.