diff options
Diffstat (limited to 'net/latd/files/patch-server.h')
-rw-r--r-- | net/latd/files/patch-server.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/net/latd/files/patch-server.h b/net/latd/files/patch-server.h new file mode 100644 index 000000000000..cb79030ff1f0 --- /dev/null +++ b/net/latd/files/patch-server.h @@ -0,0 +1,29 @@ +--- 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); + } |