Similar to x11/nx/nxcomp, comms/hylafax also fails to build after
the latest FD_* changes:

Dispatcher.c++: In member function 'virtual bool Dispatcher::anyReady() const':
Dispatcher.c++:510: error: invalid conversion from 'const fd_set*' to 'fd_set*'
Dispatcher.c++:510: error:   initializing argument 2 of 'int __fd_isset(int, 
fd_set*)'
Dispatcher.c++:511: error: invalid conversion from 'const fd_set*' to 'fd_set*'
Dispatcher.c++:511: error:   initializing argument 2 of 'int __fd_isset(int, 
fd_set*)'
Dispatcher.c++:511: error: invalid conversion from 'const fd_set*' to 'fd_set*'
Dispatcher.c++:511: error:   initializing argument 2 of 'int __fd_isset(int, 
fd_set*)'

Not sure what the best C++ idiom to fix that is.
How about this?

Index: patches/patch-libhylafax_Dispatcher_c++
===================================================================
RCS file: patches/patch-libhylafax_Dispatcher_c++
diff -N patches/patch-libhylafax_Dispatcher_c++
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-libhylafax_Dispatcher_c++     5 Mar 2016 21:11:18 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- libhylafax/Dispatcher.c++.orig     Wed Jun  6 02:58:38 2012
++++ libhylafax/Dispatcher.c++  Sat Mar  5 22:04:33 2016
+@@ -501,7 +501,7 @@ bool Dispatcher::dispatch(timeval* howlong) {
+     return (nfound != 0);
+ }
+ 
+-bool Dispatcher::anyReady() const {
++bool Dispatcher::anyReady() {
+     if (!_cqueue->isEmpty()) {
+         Dispatcher::sigCLD(0);                // poll for pending children
+         return _cqueue->isReady();
Index: patches/patch-libhylafax_Dispatcher_h
===================================================================
RCS file: patches/patch-libhylafax_Dispatcher_h
diff -N patches/patch-libhylafax_Dispatcher_h
--- /dev/null   1 Jan 1970 00:00:00 -0000
+++ patches/patch-libhylafax_Dispatcher_h       5 Mar 2016 21:11:18 -0000
@@ -0,0 +1,12 @@
+$OpenBSD$
+--- libhylafax/Dispatcher.h.orig       Wed Jun  6 02:58:38 2012
++++ libhylafax/Dispatcher.h    Sat Mar  5 22:04:43 2016
+@@ -72,7 +72,7 @@ class Dispatcher { (protected)
+     virtual void attach(int fd, DispatcherMask, IOHandler*);
+     virtual void detach(int fd);
+     virtual bool dispatch(timeval*);
+-    virtual bool anyReady() const;
++    virtual bool anyReady();
+     virtual int fillInReady(fd_set&, fd_set&, fd_set&);
+     virtual int waitFor(fd_set&, fd_set&, fd_set&, timeval*);
+     virtual void notify(int, fd_set&, fd_set&, fd_set&);
-- 
Christian "naddy" Weisgerber                          na...@mips.inka.de

Reply via email to