Fix OS X 10.5 problem where FD_ISSET() argument isn't const

This commit is contained in:
Keith Winstein
2012-05-23 03:19:36 -04:00
parent 7700984bbb
commit 5e86700a0a
2 changed files with 22 additions and 2 deletions
+8 -2
View File
@@ -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 );
}