diff --git a/libs/pbd/file_manager.cc b/libs/pbd/file_manager.cc index e02bcc2b0d..0c79011af1 100644 --- a/libs/pbd/file_manager.cc +++ b/libs/pbd/file_manager.cc @@ -24,6 +24,9 @@ #include #include +#include +#include + #ifdef __APPLE__ #include #endif @@ -226,7 +229,7 @@ FdFileDescriptor::open () { /* we must have a lock on the FileManager's mutex */ - _fd = ::open (_path.c_str(), _writeable ? (O_RDWR | O_CREAT) : O_RDONLY, _mode); + _fd = ::g_open (_path.c_str(), _writeable ? (O_RDWR | O_CREAT) : O_RDONLY, _mode); return (_fd == -1); }