added fix for old versions of gnu

This commit is contained in:
Jeff Hill
2000-02-09 20:59:54 +00:00
parent 3361eaa349
commit 06296ab7c5

View File

@@ -187,8 +187,12 @@ inline resTableIndex fdRegId::hash (unsigned) const
{
resTableIndex hashid;
#if defined(__GNUC__) && ( __GNUC__<2 || (__GNUC__==2 && __GNUC__<8) )
hashid = intId<SOCKET, hashTableIndexBits, sizeof(SOCKET)*CHAR_BIT>
::hashEngine(this->fd);
#else
hashid = intId<SOCKET, hashTableIndexBits>::hashEngine(this->fd);
#endif
//
// also evenly distribute based on the type of fdRegType