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
parent
ace9c7853c
commit
009d86da2d
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in New Issue