diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2015-07-26 11:18:20 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2015-07-26 11:18:20 +1000 |
commit | 1a520b376f9ac9a76594b284d91954c30905ec03 (patch) | |
tree | 78521f0f83047f63c405a25502e6e6c3ff1302b8 /libs/ardour/utils.cc | |
parent | d91efa7f541c4eb0d3c5d29d698ade5bbf18c8e9 (diff) |
Use g_open instead of ::open in ARDOUR::touch_file for portability
Diffstat (limited to 'libs/ardour/utils.cc')
-rw-r--r-- | libs/ardour/utils.cc | 5 |
1 files changed, 4 insertions, 1 deletions
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 <errno.h> #include <regex.h> +#include <glib.h> +#include <glib/gstdio.h> + #include <glibmm/miscutils.h> #include <glibmm/fileutils.h> @@ -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; |