diff options
Diffstat (limited to 'generic')
-rw-r--r-- | generic/tclStubInit.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/generic/tclStubInit.c b/generic/tclStubInit.c index 7eb1788..4f562a7 100644 --- a/generic/tclStubInit.c +++ b/generic/tclStubInit.c @@ -53,7 +53,13 @@ static int TclSockMinimumBuffersOld(int sock, int size) } #endif -#define TclWinNToHS ntohs + +#if defined(_WIN32) || defined(__CYGWIN__) +#define TclWinNToHS winNToHS +static unsigned short TclWinNToHS(unsigned short ns) { + return ntohs(ns); +} +#endif #ifdef __WIN32__ # define TclUnixWaitForFile 0 |