diff options
Diffstat (limited to 'WWW/Library/Implementation/HTTCP.c')
-rw-r--r-- | WWW/Library/Implementation/HTTCP.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/WWW/Library/Implementation/HTTCP.c b/WWW/Library/Implementation/HTTCP.c index 2860e555..0f5b1d34 100644 --- a/WWW/Library/Implementation/HTTCP.c +++ b/WWW/Library/Implementation/HTTCP.c @@ -1132,7 +1132,8 @@ LYNX_HOSTENT *LYGetHostByName(char *str) #ifdef _WINDOWS_NSL { - HANDLE hThread, dwThreadID; + HANDLE hThread; + DWORD dwThreadID; #ifndef __CYGWIN__ if (!system_is_NT) { /* for Windows9x */ @@ -1150,7 +1151,7 @@ LYNX_HOSTENT *LYGetHostByName(char *str) WSASetLastError(WSAHOST_NOT_FOUND); hThread = CreateThread(NULL, 4096UL, _fork_func, host, 0UL, - (unsigned long *) &dwThreadID); + &dwThreadID); if (!hThread) MessageBox(NULL, "CreateThread", "CreateThread Failed", 0L); @@ -1954,7 +1955,7 @@ int HTDoRead(int fildes, int nb; #endif /* UCX, BSN */ -#ifdef UNIX +#if defined(UNIX) && !defined(__BEOS__) if (fildes == 0) { /* * 0 can be a valid socket fd, but if it's a tty something must have |