Common: DragonFly needs MAP_NOSYNC as well

This commit is contained in:
Jan Beich committed 2015-05-26 15:20:11 +03:00
1 parent 61c106c57f
commit b24b12f4a0
1 file changed
+1 -1
+1 -1
View File
@@ -189,7 +189,7 @@ void *MemArena::CreateView(s64 offset, size_t size, void *base)
// Do not sync memory to underlying file. Linux has this by default.
#ifdef BLACKBERRY
MAP_NOSYNCFILE |
#elif defined(__FreeBSD__)
#elif defined(__DragonFly__) || defined(__FreeBSD__)
MAP_NOSYNC |
#endif
((base == 0) ? 0 : MAP_FIXED), fd, offset);