diff --git a/src/backends/unix/shared/hunk.c b/src/backends/unix/shared/hunk.c index 22332049..f1443ed8 100644 --- a/src/backends/unix/shared/hunk.c +++ b/src/backends/unix/shared/hunk.c @@ -76,7 +76,7 @@ Hunk_Begin(int maxsize) #if defined(PROT_MAX) /* For now it is FreeBSD exclusif but could possibly be extended to other like DFBSD for example */ - prot = PROT_MAX(prot); + prot |= PROT_MAX(prot); #endif membase = mmap(0, maxhunksize, prot,