ICU-2759 QNX has a slightly broken mmap, and this fixes it.

X-SVN-Rev: 11379
This commit is contained in:
George Rhoten 2003-03-21 18:57:06 +00:00
parent 6d1e406059
commit 8d325bc978

View File

@ -179,6 +179,8 @@
/* get a view of the mapping */
#ifndef HPUX
data=mmap(0, length, PROT_READ, MAP_SHARED, fd, 0);
#elif defined(U_QNX)
data=mmap(0, length, PROT_READ, MAP_PRIVATE|MAP_NOSYNCFILE, fd, 0);
#else
data=mmap(0, length, PROT_READ, MAP_PRIVATE, fd, 0);
#endif