|
@@ -14,7 +14,7 @@
|
|
|
#include "qemu/error-report.h"
|
|
|
#include <wchar.h>
|
|
|
#include <dirent.h>
|
|
|
-
|
|
|
+#include <glib/gstdio.h>
|
|
|
#include <sys/statvfs.h>
|
|
|
|
|
|
|
|
@@ -1622,7 +1622,7 @@ static void usb_mtp_write_data(MTPState *s, uint32_t handle)
|
|
|
if (s->dataset.filename) {
|
|
|
path = g_strdup_printf("%s/%s", parent->path, s->dataset.filename);
|
|
|
if (s->dataset.format == FMT_ASSOCIATION) {
|
|
|
- ret = mkdir(path, mask);
|
|
|
+ ret = g_mkdir(path, mask);
|
|
|
if (!ret) {
|
|
|
usb_mtp_queue_result(s, RES_OK, d->trans, 3,
|
|
|
QEMU_STORAGE_ID,
|