Bogus 'socket' variable in HTHost.c?

I attempted to compile 4.1b1 on SunOS 4.1.3 and after realizing that
it needed gmake and forcing STDC_HEADERS in config.h (use stdarg.h
instead of vararg.h; ./configure script didn't find the gcc 2.5.8
headers for some reason), the compilation barfed in HTHost.c
complaining about 'socket' being undeclared HTHost_setChannel. The
code looks like..

	    if (CORE_TRACE)
		HTTrace("Host info... no room for persistent socket %d\n",

Obviously bogus, as there is no 'socket' variable anywhere visible.
In some systems this goes unnoticed, as there is a system library
function named 'socket', the address of which gets used.

Markku Savela (msa@hemuli.tte.vtt.fi),     Technical Research Centre of Finland
Multimedia Systems, P.O.Box 1203,FIN-02044 VTT,http://www.vtt.fi/tte/staff/msa/