Use same condition for QT_USE_MMAP as in qresource.cpp

Consistently use the same condition to decide whether or not to
set QT_USE_MMAP.

Change-Id: Ica83d40c8051a8957d875334b821037b25fa8677
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
bb10
Tobias Hunger 2019-09-23 14:23:26 +02:00
parent ace9c7853c
commit 009d86da2d
2 changed files with 6 additions and 6 deletions

View File

@ -58,11 +58,11 @@
#include "qendian.h"
#include "qresource.h"
#if defined(Q_OS_UNIX) && !defined(Q_OS_INTEGRITY)
#define QT_USE_MMAP
#include "private/qcore_unix_p.h"
#if defined(Q_OS_UNIX) && !defined(Q_OS_NACL) && !defined(Q_OS_INTEGRITY)
# define QT_USE_MMAP
# include "private/qcore_unix_p.h"
// for mmap
#include <sys/mman.h>
# include <sys/mman.h>
#endif
#include <stdlib.h>

View File

@ -91,8 +91,8 @@ bool QMimeDatabasePrivate::shouldCheck()
return true;
}
#if defined(Q_OS_UNIX) && !defined(Q_OS_INTEGRITY)
#define QT_USE_MMAP
#if defined(Q_OS_UNIX) && !defined(Q_OS_NACL) && !defined(Q_OS_INTEGRITY)
# define QT_USE_MMAP
#endif
void QMimeDatabasePrivate::loadProviders()