#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
+#include <unistd.h>
#include "virerror.h"
#include "storage_file_backend.h"
}
+#ifndef WIN32
static int
virStorageFileBackendFileChown(const virStorageSource *src,
uid_t uid,
{
return chown(src->path, uid, gid);
}
+#endif
virStorageFileBackend virStorageFileBackendFile = {
.storageFileStat = virStorageFileBackendFileStat,
.storageFileRead = virStorageFileBackendFileRead,
.storageFileAccess = virStorageFileBackendFileAccess,
+#ifndef WIN32
.storageFileChown = virStorageFileBackendFileChown,
+#endif
};
.storageFileStat = virStorageFileBackendFileStat,
.storageFileRead = virStorageFileBackendFileRead,
.storageFileAccess = virStorageFileBackendFileAccess,
+#ifndef WIN32
.storageFileChown = virStorageFileBackendFileChown,
+#endif
};
.backendDeinit = virStorageFileBackendFileDeinit,
.storageFileAccess = virStorageFileBackendFileAccess,
+#ifndef WIN32
.storageFileChown = virStorageFileBackendFileChown,
+#endif
};