1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 19:20:36 -04:00
ports/net/latd/files/patch-server.h
Antoine Brodin 8313b3fe69 Allow building with libc++ r224926
PR:		ports/196630
Submitted by:	dim@
2015-01-09 18:02:36 +00:00

29 lines
625 B
C

--- server.h.orig 2008-10-03 15:49:53 UTC
+++ server.h
@@ -152,22 +152,22 @@ class LATServer
return (!(type == INACTIVE || type == DISABLED_PTY));
}
- bool operator==(int _fd)
+ bool operator==(int _fd) const
{
return (type != INACTIVE && fd == _fd);
}
- bool operator==(const fdinfo &fdi)
+ bool operator==(const fdinfo &fdi) const
{
return (fd == fdi.fd);
}
- bool operator!=(const fdinfo &fdi)
+ bool operator!=(const fdinfo &fdi) const
{
return (fd != fdi.fd);
}
- bool operator!=(int _fd)
+ bool operator!=(int _fd) const
{
return (type == INACTIVE || fd != _fd);
}