From 5131b8300f26a9af790936389203fa94667aee67 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 15 Jul 2013 07:54:29 -0400 Subject: [PATCH] Use g_open instead of ::open in PBD::FileManager g_open is a macro that evaluates to ::open on linux(and mac) so this is only a change for windows. --- libs/pbd/file_manager.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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); }