diff options
Diffstat (limited to 'winsup/testsuite/winsup.api/mmaptest01.c')
-rw-r--r-- | winsup/testsuite/winsup.api/mmaptest01.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/winsup/testsuite/winsup.api/mmaptest01.c b/winsup/testsuite/winsup.api/mmaptest01.c index 99a7d2ef1..fe3226d1b 100644 --- a/winsup/testsuite/winsup.api/mmaptest01.c +++ b/winsup/testsuite/winsup.api/mmaptest01.c @@ -155,7 +155,10 @@ int main () buf1[0] = 0x7f; tst_resm (memcmp (buf1, buf2, 20) ? TFAIL : TPASS, "changes are shared between MAP_SHARED mappings of the same file"); - munmap (buf2, 4096); + if (buf1 == buf2) /* Win 9x weirdness */ + msync (buf2, 4096, MS_SYNC); + else + munmap (buf2, 4096); fd2 = open (fnam1, O_RDWR | O_BINARY, 0644); memset (buf3, 0, 20); |