#include <fcntl.h>
#include <glib.h>
-#include <glib/gstdio.h>
+#include "pbd/gstdio_compat.h"
#include "pbd/error.h"
SndFileImportableSource::SndFileImportableSource (const string& path)
{
- int fd = g_open (path.c_str (), SFM_READ, 0444);
+ int fd = g_open (path.c_str (), O_RDONLY, 0444);
if (fd == -1) {
throw failed_constructor ();
}