From 1a520b376f9ac9a76594b284d91954c30905ec03 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sun, 26 Jul 2015 11:18:20 +1000 Subject: Use g_open instead of ::open in ARDOUR::touch_file for portability --- libs/ardour/utils.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libs/ardour/utils.cc') diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc index 270aaa37fd..b0088ef251 100644 --- a/libs/ardour/utils.cc +++ b/libs/ardour/utils.cc @@ -42,6 +42,9 @@ #include #include +#include +#include + #include #include @@ -299,7 +302,7 @@ ARDOUR::cmp_nocase_utf8 (const string& s1, const string& s2) int ARDOUR::touch_file (string path) { - int fd = open (path.c_str(), O_RDWR|O_CREAT, 0660); + int fd = g_open (path.c_str(), O_RDWR|O_CREAT, 0660); if (fd >= 0) { close (fd); return 0; -- cgit v1.2.3