diff options
author | Antoine Brodin <antoine@FreeBSD.org> | 2015-01-09 18:02:36 +0000 |
---|---|---|
committer | Antoine Brodin <antoine@FreeBSD.org> | 2015-01-09 18:02:36 +0000 |
commit | 8313b3fe6910bca8d1a65251205a7a0851c3388c (patch) | |
tree | 41a5510cc7f4cf3739f0b25156e340ed122ee707 /net/latd/files/patch-server.h | |
parent | - Add LICENSE (diff) |
Allow building with libc++ r224926
PR: ports/196630
Submitted by: dim@
Notes
Notes:
svn path=/head/; revision=376632
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); + } |