Fix OS X compilation: use mode_t instead of __mode_t

This commit is contained in:
Daniel Molkentin 2015-11-11 09:36:17 +01:00
parent f753960add
commit 1d9c591c08

View file

@ -115,7 +115,7 @@ static QFile::Permissions getDefaultWritePermissions()
{
QFile::Permissions result = QFile::WriteUser;
#ifndef Q_OS_WIN
__mode_t mask = umask(0);
mode_t mask = umask(0);
umask(mask);
if (!(mask & S_IWGRP)) {
result |= QFile::WriteGroup;