Merge windows+cc branch into cairocanvas branch. Not finished, need to now merge...
[ardour.git] / libs / surfaces / mackie / mackie_control_protocol.cc
index e9bef5a9b0bf4b326e24050aed2c8db0df6dfeb8..c83ce819d950edae1ce168b036ea4ffdddbfa03e 100644 (file)
@@ -29,7 +29,6 @@
 #include <float.h>
 #include <sys/time.h>
 #include <errno.h>
-#include <poll.h>
 
 #include <boost/shared_array.hpp>
 
@@ -1272,7 +1271,9 @@ MackieControlProtocol::midi_input_handler (IOCondition ioc, MIDI::Port* port)
                */
 
                if (!_device_info.uses_ipmidi()) {
+#ifndef PLATFORM_WINDOWS
                        CrossThreadChannel::drain (port->selectable());
+#endif
                }
 
                DEBUG_TRACE (DEBUG::MackieControl, string_compose ("data available on %1\n", port->name()));