Fix OS X 10.5 problem where FD_ISSET() argument isn't const
This commit is contained in:
+8
-2
@@ -127,12 +127,18 @@ public:
|
||||
return ret;
|
||||
}
|
||||
|
||||
bool read( int fd ) const
|
||||
bool read( int fd )
|
||||
#if FD_ISSET_IS_CONST
|
||||
const
|
||||
#endif
|
||||
{
|
||||
return FD_ISSET( fd, &read_fds );
|
||||
}
|
||||
|
||||
bool error( int fd ) const
|
||||
bool error( int fd )
|
||||
#if FD_ISSET_IS_CONST
|
||||
const
|
||||
#endif
|
||||
{
|
||||
return FD_ISSET( fd, &error_fds );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user