#include "control_protocol/control_protocol.h"
#include "ardour/debug.h"
-#include "ardour/session.h"
#include "ardour/control_protocol_manager.h"
#include "ardour/control_protocol_search_path.h"
dylib_extension_pattern, cp_modules);
DEBUG_TRACE (DEBUG::ControlProtocols,
- string_compose (_("looking for control protocols in %1"), control_protocol_search_path().to_string()));
+ string_compose (_("looking for control protocols in %1\n"), control_protocol_search_path().to_string()));
for (vector<sys::path>::iterator i = cp_modules.begin(); i != cp_modules.end(); ++i) {
control_protocol_discover ((*i).to_string());
{
ControlProtocolDescriptor* descriptor;
- /* don't load shared objects that are just symlinks to the real thing.
+#ifdef __APPLE__
+ /* don't load OS X shared objects that are just symlinks to the real thing.
*/
- if (Glib::file_test (path, Glib::FILE_TEST_IS_SYMLINK)) {
+ if (path.find (".dylib") && Glib::file_test (path, Glib::FILE_TEST_IS_SYMLINK)) {
return 0;
}
+#endif
if ((descriptor = get_descriptor (path)) != 0) {