tests: fixed compilation of qstring benchmark on mac
authorRohan McGovern <rohan.mcgovern@nokia.com>
Fri, 27 May 2011 04:31:11 +0000 (14:31 +1000)
committerQt Continuous Integration System <qt-info@nokia.com>
Fri, 27 May 2011 07:51:03 +0000 (09:51 +0200)
commit6abf9093f75d11f120bd3b8569d2cc843c27c09f
tree6753b3ad5d4e983fc11062140e5f8e5cebbb333b
parent2f2ffed775300f3b3e1674a1c5d175a62f584ebf
tests: fixed compilation of qstring benchmark on mac

On Mac, MAP_ANONYMOUS and MAP_POPULATE are not defined.

Fix MAP_ANONYMOUS by defining it to MAP_ANON.

Fix MAP_POPULATE by removing it, because its usage was unnecessary in
this code (the page was explicitly faulted in a few lines later anyway).

Change-Id: Iead82e1a949b35fe3c304d38babac8d4dc6f0769
Reviewed-on: http://codereview.qt.nokia.com/162
Reviewed-by: Jason McDonald <jason.mcdonald@nokia.com>
tests/benchmarks/corelib/tools/qstring/main.cpp