diff options
Diffstat (limited to 'sys/kern/sysv_shm.c')
-rw-r--r-- | sys/kern/sysv_shm.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/kern/sysv_shm.c b/sys/kern/sysv_shm.c index b59aea5..dd9e302 100644 --- a/sys/kern/sysv_shm.c +++ b/sys/kern/sysv_shm.c @@ -391,11 +391,7 @@ kern_shmat(td, shmid, shmaddr, shmflg) goto done2; } size = round_page(shmseg->shm_bsegsz); -#ifdef VM_PROT_READ_IS_EXEC - prot = VM_PROT_READ | VM_PROT_EXECUTE; -#else prot = VM_PROT_READ; -#endif if ((shmflg & SHM_RDONLY) == 0) prot |= VM_PROT_WRITE; flags = MAP_ANON | MAP_SHARED; |