From 8d325bc978f1c45ee3fe1b963404b3fd86a7ecb2 Mon Sep 17 00:00:00 2001 From: George Rhoten Date: Fri, 21 Mar 2003 18:57:06 +0000 Subject: [PATCH] ICU-2759 QNX has a slightly broken mmap, and this fixes it. X-SVN-Rev: 11379 --- icu4c/source/common/umapfile.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/icu4c/source/common/umapfile.c b/icu4c/source/common/umapfile.c index b3613ce3cce..07651d202d4 100644 --- a/icu4c/source/common/umapfile.c +++ b/icu4c/source/common/umapfile.c @@ -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